现在的位置: 首页 > 综合 > 正文

兼容IE的圆角效果

2013年10月09日 ⁄ 综合 ⁄ 共 396字 ⁄ 字号 评论关闭

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  这个文件一定要引用。

抱歉!评论已关闭.