/*用户登录注册页面输入框的设置*/<span>的使用
1 <!DOCTYPE html> 2 /*用户登录注册页面输入框的设置*/ 3 <html lang="en"> 4 <head> 5 <meta charset="UTF-8"> 6 <title>Title</title> 7 <link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.css"> 8 <style> 9 body{ 10 margin: 0; 11 } 12 .c1{ 13 position: relative; 14 width: 170px; 15 height: 30px; 16 padding-right: 30px; 17 } 18 .c2{ 19 position: absolute; 20 left: 180px; 21 top: 8px; 22 } 23 </style> 24 </head> 25 <body> 26 27 <input type="text" class="c1"> 28 <span class="fa fa-user-o c2"></span>/*用户登录注册页面输入框的设置*/ 29 </body> 30 </html>