1. 2007.10.16 스타일 예제

스타일 예제

◆ ReadOnly 속성에 따라 다른 스타일
.textboxReadonlyBackground {
    border-width: 1px;
    border-collapse: collapse;
    background-color: expression((this.readOnly) ? '#ffffff' : '#000000');
    border-style: inset;
    border: expression((this.type == 'checkbox' || this.type == 'radio') ? '' : '1px solid gray');
}
</style>
<input type="text" class="textboxReadonlyBackground">
<input type="text" class="textboxReadonlyBackground" readOnly="true">
◆ TextBox의 테두리(Border) 안보이게 하기
.textboxBorderOff {
    clear: none;
    border: 0px none;
    float: none;
    background-color: transparent;
}
</style>
<input type="text" class="inputBorderOff">
Return top