我有以下表格
<form id="enter_email" method="post" action="">
<input type="text" value="enter email" />
<input type="image" src="images/buttons/join-now.png" />
</form>
Run Code Online (Sandbox Code Playgroud)
我想知道我是否可以通过css删除文本框中显示的值:仅关注焦点,
谢谢
不,你必须使用脚本.
<input id="txt1" type="text" value="test value" onfocus="this.value='';" />
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6803 次 |
| 最近记录: |