原文:HTML中让表单input等文本框为只读不可编辑的方法

方法 : onfocus this.blur lt input type text name input value 中国 onfocus this.blur gt 方法 :readonly lt input type text name input value 中国 readonly gt lt input type text name input value 中国 readonly true ...

2015-05-02 23:58 0 14630 推荐指数:

查看详情

HTML:让表单 文本框 只读不可编辑方法

有时候,我们希望表单文本框只读的,让用户不能修改其中的信息,如使<input type="text" name="input1" value="中国"> 的内容,"中国"两个字不可以修改。实现的方式归纳一下,有如下几种。 方法1: onfocus=this.blur()< ...

Thu Mar 01 03:53:00 CST 2018 0 2603
javascript:让表单 文本框 只读不可编辑方法

有时候,我们希望表单文本框只读的,让用户不能修改其中的信息,如使<input type="text" name="input1" value="中国"> 的内容,"中国"两个字不可以修改。实现的方式归纳一下,有如下几种。 方法1: onfocus=this.blur()< ...

Fri Mar 03 23:16:00 CST 2017 0 1535
表单input文本框只读不可编辑方法-转

有时候,我们希望表单文本框只读的,让用户不能修改其中的信息,如使<input type="text" name="input1" value="中国"> 的内容,"中国"两个字不可以修改。实现的方式归纳一下,有如下几种。 方法1: onfocus=this.blur() 当鼠标放 ...

Sat Sep 29 01:07:00 CST 2018 0 827
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM