CSS属性里是没有readonly这项的,要么用expression,要么用HTC
如:<style>
input{readonly:expression(this.readOnly=true)}
</style>
<input>
如:<style>
input{readonly:expression(this.readOnly=true)}
</style>
<input>
解决方案 »
- 在增加一行数据是,想给表格里添加控件 ,如下
- Javascript 方法失效
- var $CommentUser =$('#CommentUser').val(); 我在c#中命名,$i 失败哟,js可以,好奇怪,大家说是不是
- 【【【为什么层内的flash新闻图片位置晃动??】】】
- 初学者提问,为什么老是提示 缺少对象啊!
- javascript不要显示在文本框内
- 请教:如何用javascript验证单选框是否选中?
- 如何取得<iframe id="message">></iframe>
- 100分求文章分页,详细要求见内,分不够可以再加
- 请教:在写JavaScript方面,如何提高设计和抽象能力?
- 能不能单击button后改变它为submit
- 如何在textarea中获取外部变量的值?
Scripting object.readOnly [ = bRead ]
如:<style>
input{readonly:expression(this.readOnly=true)}
</style>
<input>
===============
一定要放在文件(html)里吗?不能放在CSS文件里?
就是不对,奇怪