設(shè)置input里value的顏色 html中 默認(rèn)值的樣式如何設(shè)置?
html中 默認(rèn)值的樣式如何設(shè)置?<inputtype=“text”id=“test”value=“格式為xxx@xxx.com“onfocus=”cls()”onblur=”res()”styl
html中 默認(rèn)值的樣式如何設(shè)置?
<inputtype=“text”id=“test”value=“格式為xxx@xxx.com“onfocus=”cls()”onblur=”res()”style=”顏色:灰色“onkeyprese=”pre(this)“/> pre=newfunction(el){el.style.color=“Black”}一開始是灰色的,一旦用戶輸入它就會(huì)變成黑色。