CSS3实现圆角文本框

利用了CSS3的效果,暂时只有IE9 、FireFox和Chrome浏览器支持。

 1 <html xmlns="http://www.w3.org/1999/xhtml">
2
3 <head>
4 <title></title>
5 <style>
6 .input-text
7      {
8 border: 1px solid #C3CED9;
9 border-radius: 5px 5px 5px 5px;
10 font-size: 14px;
11 height: 31px;
12 line-height: 31px;
13 margin-right: 10px;
14 padding: 0;
15 width: 327px;
16      }
17 </style>
18 </head>
19 <body>
20 UserName:<input type="text" id="name" class="input-text" />
21 <br /><br />
22 Password:<input type="password" id="pw" class="input-text" />
23 </body>
24 </html>





posted @ 2012-02-14 10:06  tovep  阅读(1174)  评论(0编辑  收藏  举报