兼容IE的圆角效果

来源:互联网 发布:加工中心编程招聘8000 编辑:程序博客网 时间:2024/05/17 19:58
IE9以下的版本是不支持css3的,那如果想让IE6、IE7、IE8有圆角效果,怎么办呢??
下载这个http://www.iefans.net/wp-content/uploads/2010/12/iecss3.rar附件,上面有个案例。
<style type="text/css">
.test {
width:200px;
height:160px;
background-color: blue;
padding:10px; 
border: 2px solid #CCC;
border-radius: 10px;
-moz-border-radius: 10px;
        -webkit-border-radius: 10px;
behavior: url(ie-css3.htc);
}
</style>

重要的是这段代码  behavior: url(ie-css3.htc)
ie-css3.htc  这个文件一定要引用。


原创粉丝点击