HTML中Select不用Disabled实现ReadOnly的另
發表於 : 2008-11-03 17:40:27
http://www.cnblogs.com/wuqing17/archive ... 57827.html
<html>
<body>
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
<option selected>2</option>
<option>3</option>
</select>
</body>
</html>
<html>
<body>
<select onbeforeactivate="return false" onfocus="this.blur()" onmouseover="this.setCapture()" onmouseout="this.releaseCapture()">
<option>1</option>
<option selected>2</option>
<option>3</option>
</select>
</body>
</html>