CSS属性里是没有readonly这项的,要么用expression,要么用HTC
如:<style>
input{readonly:expression(this.readOnly=true)}
</style>
<input>

解决方案 »

  1.   

    这是一个Dhtml属性只能通过两种方法使用HTML <ELEMENT READONLY ... >  
    Scripting object.readOnly [ = bRead ] 
      

  2.   

    CSS属性里是没有readonly这项的,要么用expression,要么用HTC
    如:<style>
    input{readonly:expression(this.readOnly=true)}
    </style>
    <input>
    ===============
    一定要放在文件(html)里吗?不能放在CSS文件里?
      

  3.   

    只不过不能在CSS文件里加<style></style>而已直接写就可以了。input{readonly:expression(this.readOnly=true)}
      

  4.   

    我放在CSS里,怎么不灵了其中就这一句input{readonly:expression(this.readOnly=true)}
    就是不对,奇怪