首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

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

2012-11-21 
鼠标点击时输入框内的value值自动没有效果:只需要在input中加入:onfocusthis.valueps:input type

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

效果:

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


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



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


ps:

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

热点排行