HTML text boxes watermark

  Use placeholder method, can be used directly in the <input /> tag;

. 1     < body background = "../../ IMG / imgBg / blueBg2.jpg" > 
2          
. 3          < form Method = "POST" Action = "the login.html" > 
. 4              
. 5              Account: < INPUT type = "text" name = "the userName" placeholder = "QQ number / micro signal / mail account" /> < br /> 
. 6              
. 7              password: < INPUT type = "password" name = "UserPwd" placeholder = "password"  /> <br/>
 8             
 9             <input type="submit" value="登陆"/>
10             
11         </form>
12         
13     </body>

  

  

 

Guess you like

Origin www.cnblogs.com/Lunix-touch/p/11241410.html