输入框蓝光特效

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml">
 3 <head>
 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 5 <title>CSS3 input输入框蓝光特效 - 代码笔记 www.198zone.com</title>
 6 <style type="text/css">
 7 input{
 8     transition:all 0.30s ease-in-out;
 9     -webkit-transition: all 0.30s ease-in-out;
10     -moz-transition: all 0.30s ease-in-out;
11     
12     width: 200px;
13     border:#35a5e5 1px solid;
14     border-radius:3px;
15     outline:none;
16 }
17 input:focus{
18     box-shadow:0 0 5px rgba(81, 203, 238, 1);
19     -webkit-box-shadow:0 0 5px rgba(81, 203, 238, 1);
20     -moz-box-shadow:0 0 5px rgba(81, 203, 238, 1);
21 }
22 </style>
23 </head>
24 <body>
25 
26 <div style=" margin:100px 700px;">
27     <input type="text"  placeholder="用户名或邮件地址" style="height:25px"/>
28     <br>
29     <br>
30     <input type="password" placeholder="请输入密码"  style="height:25px"/>
31 </div>
32 </body>
33 </html>

 

posted @ 2015-08-30 20:07  哟风  Views(128)  Comments(0Edit  收藏  举报