当前位置:Gxlcms > JavaScript > HTML中Select不用Disabled实现ReadOnly的效果

HTML中Select不用Disabled实现ReadOnly的效果

时间:2021-07-01 10:21:17 帮助过:13人阅读

方法如下:
代码如下:
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">  
<option>1</option> 
</select>

人气教程排行