HTML中Select不用Disabled实现ReadOnly的效果
网络编程 发布日期:2024/10/14 浏览次数:1
正在浏览:HTML中Select不用Disabled实现ReadOnly的效果
方法如下:
复制代码 代码如下:
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
</select>