首页 > 语言 > JavaScript > 正文

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

2024-05-06 14:18:12
字体:
来源:转载
供稿:网友
方法如下:
代码如下:
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">  
<option>1</option> 
</select>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选