<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 ...