border-radius IE8兼容处理的方法

2022-01-13,,,,

这篇文章主要介绍了border-radius IE8兼容处理的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

根据canisue(http://caniuse.com/#search=border-radius),border-radius兼容性如下图所示:

测试代码:

    * { margin: 0; padding: 0; } #header { width: 400px; height: 400px; margin: 10px; border-radius: 10px; border: 1px solid red; }   

IE8浏览器效果:

border-radius在IE8浏览器兼容方案:

    * { margin: 0; padding: 0; } #header { width: 400px; height: 400px; margin: 10px; border-radius: 10px; border: 1px solid red; /*关键属性设置 需要把路径设置好*/ behavior: url(PIE.htc); }   

IE8浏览器下效果:

PIE.HTC下载地址:http://css3pie.com/

PIE可以处理CSS3的一些属性,如:

IE8:兼容性主要是:

(1)不支持css3属性,使用PIE.js实现CSS3效果。

(2)media query

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持本站。

以上就是border-radius IE8兼容处理的方法的详细内容,更多请关注本站其它相关文章!

《border-radius IE8兼容处理的方法.doc》

下载本文的Word格式文档,以方便收藏与打印。