首页 > 编程 > JavaScript > 正文

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

2019-11-21 01:46:44
字体:
来源:转载
供稿:网友
方法如下:
复制代码 代码如下:

<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">  
<option>1</option> 
</select>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表