设置input里value的颜色 html中 默认值的样式如何设置?
html中 默认值的样式如何设置?<inputtype=“text”id=“test”value=“格式为xxx@xxx.com“onfocus=”cls()”onblur=”res()”styl
html中 默认值的样式如何设置?
<inputtype=“text”id=“test”value=“格式为xxx@xxx.com“onfocus=”cls()”onblur=”res()”style=”颜色:灰色“onkeyprese=”pre(this)“/> pre=newfunction(el){el.style.color=“Black”}一开始是灰色的,一旦用户输入它就会变成黑色。