`

让input text只读的几种方法 by yanleigis,Email:landgis@126.com 参考http://www.jb51.net/article/17185.htm

 
阅读更多


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>让input text只读的几种方法 by yanleigis,Email:landgis@126.com 参考http://www.jb51.net/article/17185.htm</title>
</head>

<body>
<input type="text" value="方法1 disabled=true" disabled=true>
<br>
<input type="text" value="方法2 disabled" disabled>
<br>
<input type="text" value="方法3 readonly" readonly>
<br>
<input type="text" value='方法4 onFocus="this.blur()"' onFocus="this.blur()">

</body>
</html>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics