<STYLE>
.inputReadOnly{readonly:expression(this.readOnly=true);background-color:expression((this.readOnly && this.readOnly==true)?"#BEBEBE":"") }
.inputNotReadOnly { readonly: expression(this . readOnly = false); background-color: expression(( this . readOnly && this . readOnly == false) ? "#FFFFFF" : "" )
}
</STYLE>
<input type="text" name="f_EfullName" id="f_EfullName"
size="18" maxlength="30" class="inputReadOnly"/>
动态改变样式
第一种
document.getElementById("f_empNum").className="inputNotReadOnly";
第二种
var