当前位置: 代码迷 >> Web前端 >> 鼠标点符号击时输入框内的value值自动没有
  详细解决方案

鼠标点符号击时输入框内的value值自动没有

热度:81   发布时间:2012-11-21 08:23:26.0
鼠标点击时输入框内的value值自动没有

效果:






只需要在input中加入:onfocus="this.value=''"


ps:

<input type="text" name="yourname" size="30" maxlength="20" value="输入框的长度为30,允许最大字符数为20" onfocus="this.value=''">

  相关解决方案