首页 > 网站 > WEB开发 > 正文

css用expression来区分只读文本框

2024-04-27 14:02:03
字体:
来源:转载
供稿:网友

<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(?:)


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表