html5中文本框输入内容提示消失
发布时间:01/15 来源: 浏览:
关键词:
下面来介绍基于HTML5 input标签的新特性 - placeholder 实现在文本框输入内容提示消失效果,有需要的朋友可参考。
例1
代码如下 | |
<div><input type="email" name="email" spellcheck="false" placeholder="邮 箱" autofocus tabindex="1" x-webkit-speech></div> <div><input type="password" name="password" placeholder="密 码" tabindex="2"></div> |