标签:style blog http ar color os 使用 sp strong
1 <link href="test.css" type="text/css" rel="stylesheet" /> 2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 3 <div class="loginbox"> 4 <h2>邮箱登录</h2> 5 <ul> 6 <li><input type="text" value="邮箱账号" class="account" /><input type="button" value="@qq.com" class="mail_btn" /></li> 7 <li><input type="text" value="密码" /></li> 8 </ul> 9 </div> 10
使用border-radius属性,制作圆角
/*CSS3.0圆角属性实现表单元素圆角*/ .loginbox{
background:#edf6ff;
border-left:1px solid #acc3e3;
border-right:1px solid #acc3e3;
padding:20px;
} .loginbox h2{
color:#28456f;
font-size:14px;
} .loginbox ul{
margin-top:10px;
} .loginbox li{
margin-bottom:10px;
list-style-type:none;
} .loginbox li input{
border:1px solid #9dadc6;
border-radius:6px;
height:32px;
padding:0 5px;
color:#888;
width:292px;
} .loginbox li input.account{
width:182px;
border-right:1px solid #d5deed;
border-top-right-radius:0;
border-bottom-right-radius:0;
background:-moz-linear-gradient( top,#ddd 0%,#eee 10%,#fff 20%);
background:-webkit-linear-gradient( top,#ddd 0%,#eee 10%,#fff 20%);
background:-ms-linear-gradient( top,#ddd 0%,#eee 10%,#fff 20%);
} .loginbox li input.mail_btn{
width:110px;
height:34px;
border-top-left-radius:0;
border-bottom-left-radius:0;
color:#504c4d;
text-align:left;
cursor:pointer;
}
标签:style blog http ar color os 使用 sp strong
原文地址:http://www.cnblogs.com/huair_12/p/4130582.html