HTML中Select不用Disabled实现ReadOnly的效果
时间:2021-05-27 08:45:59|栏目:JavaScript代码|点击: 次
方法如下:
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select>
复制代码 代码如下:
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select>
栏 目:JavaScript代码
下一篇:JavaScript 操作键盘的Enter事件(键盘任何事件),兼容多浏览器
本文标题:HTML中Select不用Disabled实现ReadOnly的效果
本文地址:http://www.codeinn.net/misctech/130137.html






