怎样通过CSS控制input输入框有readonly属性的背景色

<style type="text/css">
input{
background-color:expression(this.readOnly==true?"#eee":"#fff");
}
</style>

posted @ 2016-06-28 14:40  迹地猿  阅读(745)  评论(0编辑  收藏  举报