轉載自: https://blog.csdn.net/hjm4702192/article/details/33729767 1. <select style="width:195px ...
html中讓input標簽只讀不可編輯的方法 方法 :onfocus this.blur 方法 :readonly 方法 :disabled ...
2018-06-12 16:41 0 26590 推薦指數:
轉載自: https://blog.csdn.net/hjm4702192/article/details/33729767 1. <select style="width:195px ...
方法1: onfocus=this.blur() <input type="text" name="input1" value="中國" onfocus=this.blur()> 方法2:readonly <input type="text" name="input ...
方法1: onfocus=this.blur() 當鼠標放不上就離開焦點<input type="text" name="input1" value="中國" onfocus=this.blur()> 方法2:readonly <input type="text" name ...
有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使<input type="text" name="input1" value="中國"> 的內容,"中國"兩個字不可以修改。實現的方式歸納一下,有如下幾種。 方法1: onfocus=this.blur()< ...
HTML中讓表單input等文本框為只讀不可編輯的方法 有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使input text的內容,中國 ...
有時候,我們希望表單中的文本框是只讀的,讓用戶不能修改其中的信息,如使<input type="text" name="input1" value="中國"> 的內容,"中國"兩個字不可以修改。實現的方式歸納一下,有如下幾種。 方法1: onfocus=this.blur() 當鼠標放 ...
<input name="ly_qq" type="text" tabindex="2" onMouseOver="this.className='input_1'" onMouseOut="this.className='input_2'" value="123456789 ...