我在我的网页中使用 CSS3 border-radius 样式,我希望它跨浏览器兼容包括 IE8 在内的主要浏览器。
因此,我尝试使用 border-radius.htc 文件来实现这一点。无论在我的 css 样式中使用 border-radius 的什么地方,我都编写了如下代码:
-webkit-border-radius: 6px 6px 6px 6px;
border-radius: 6px 6px 6px 6px;
behavior:url(border-radius.htc);
不幸的是,当我在 IE8 中检查网页时,所有具有边框半径行为的背景最终都没有显示。
网页位于http://www.domainandseo.com/portfolio/dominos/index.html
如有任何建议,我们将不胜感激。
最佳答案
Internet Explorer 9 之前的版本不支持此属性。检查compatibility matrix .如果您想在旧浏览器中使用圆 Angular ,则必须通过带有圆 Angular 边框图像的容器来实现它们。
关于javascript - CSS3 边框半径和 Internet Explorer 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13283416/