<form id="form1" name="form1" method="post" action="">
<label for="textfield">输入内容:</label>
<input name="textfield" type="text" id="textfield" value="Dreamweaver" onmouseover="this.style.borderColor='#FF6600'" onmouseout="this.style.borderColor=''" onFocus="if (value =='Dreamweaver'){value =''}" onBlur="if (value ==''){value='Dreamweaver'}"/>
</form>
js-点击输入框默认文字消失
最新推荐文章于 2021-06-03 08:06:06 发布