css用expression来区分只读文本框

来源:岁月联盟 编辑:zhu 时间:2008-11-05
css用expression来区分只读文本框内容简介:style type=text/css !-- input{ background:expression((this.readOnly this.readOnly==true)?#CCCCCC:)} -- /style body input type=text name= <style type="text/css">
<!--

input{ background:expression((this.readOnly &&this.readOnly==true)?"#CCCCCC":"")}
-->
</style>

<body>
<input type="text" name="" />
<input type="text" name="" readonly="readonly" />



expression:处理方式:

expression(操作手法);

expression(?:)

图片内容