---恢复内容开始---
注意:
1.引用文件路径
2.:root ie9以上支持
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <div class="login"></div> </body> </html>
:root .login {
width: 100px;
height: 26px;
line-height: 26px;
border: 1px solid #f60;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
behavior:inherit; //注意此处需要加上这个样式
background: #fff;
background: mediumspringgreen;
}
.login {
width: 100px;
height: 26px;
line-height: 26px;
border: 1px solid #f60;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
border-radius: 15px;
behavior: url('css/ie-css3.htc')\9;
background: mediumspringgreen;
}