HTML文本框水印

  使用 placeholder 方法,即可在<input />标签中直接使用;

 1    <body background="../../img/imgBg/blueBg2.jpg">
 2         
 3         <form method="post" action="login.html">
 4             
 5             账号:<input type="text" name="userName" placeholder="QQ号/微信号/邮箱账号"/><br/>
 6             
 7             密码:<input type="password" name="userPwd" placeholder="密码" /><br/>
 8             
 9             <input type="submit" value="登陆"/>
10             
11         </form>
12         
13     </body>

  

  

猜你喜欢

转载自www.cnblogs.com/Lunix-touch/p/11241410.html