<input type="text" name="address" size="60" maxlength="60" style="color:gray" value="(測試)" onfocus="if(this.value=='(測試)'){this.value ...
解決如下 以下兩個效果,你看一下哪個是你要的: lt inputtype text name address size maxlength style color:gray value 測試 onfocus if this.value 測試 this.value this.style.color black onblur if this.value this.value 測試 this.valu ...
2013-06-28 14:07 5 13061 推薦指數:
<input type="text" name="address" size="60" maxlength="60" style="color:gray" value="(測試)" onfocus="if(this.value=='(測試)'){this.value ...
1、<input type="text" name="address" size="60" maxlength="60" style="color:gray" value="(測試)" onfocus="if(this.value=='(測試)'){this.value ...
設置input css: ...
textarea默認字顏色以及獲取焦點后的字的顏色,焦點獲取后使默認消失 <textarea cols="50" rows="5" id="textarea" onfocus="if(value=='獲取到元素焦點'){value ...
一、須知 placeholder屬性是css3中新增加的屬性,IE9和Opera12以下版本的CSS選擇器均不支持占位文本。 二、設置placeholder文字顏色、字號 方式1 因為每個瀏覽器的CSS選擇器都有所差異,所以需要針對每個瀏覽器做單獨的設定(可以在冒號前面寫input ...
一、須知 placeholder屬性時css3中新增加的屬性,IE9和Opera12以下版本的CSS選擇器均不支持占用文本。 二、設置placeholder文字顏色、字號 方式1 因為每個瀏覽器的CSS選擇器都有所差異,所以需要針對每個瀏覽器做單獨的設定(可以在冒號前面寫input ...