方法1: onfocus=this.blur() <input type="text" name="input1" value="中國" onfocus=this.blur()> 方法2:readonly <input type="text" name="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 中國 re ...
2015-12-30 14:48 0 12049 推薦指數:
方法1: onfocus=this.blur() <input type="text" name="input1" value="中國" onfocus=this.blur()> 方法2:readonly <input type="text" name="input ...
有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使<input type="text" name="input1" value="中國"> 的內容,"中國"兩個字不可以修改。實現的方式歸納一下,有如下幾種。 方法1: onfocus=this.blur()< ...
有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使<input type="text" name="input1" value="中國"> 的內容,"中國"兩個字不可以修改。實現的方式歸納一下,有如下幾種。 方法1: onfocus=this.blur()< ...
HTML中讓表單input等文本框為只讀不可編輯的方法 有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使input text的內容,中國 ...
有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使<input type="text" name="input1" value="中國"> 的內容,"中國"兩個字不可以修改。實現的方式歸納一下,有如下幾種。 方法1: onfocus=this.blur() 當鼠標放 ...
感謝原文作者:青燈夜游 原文鏈接:https://www.php.cn/div-tutorial-413133.html 目錄 問題 實現方式 1、οnfοcus=this.blur() 2、readonly屬性 ...
html中讓input標簽只讀不可編輯的方法 方法1:onfocus=this.blur() 方法2:readonly 方法3:disabled ...