javascript - CSS3 边框半径和 Internet Explorer 8

标签 javascript html css

我在我的网页中使用 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/

相关文章:

html - 不使用表格的并排元素*具有可变内容*

javascript - XMLHTTPRequest 错误 : Synchronous XMLHttpRequest on the main thread is deprecated . ..(SoundCloud API)

javascript - 在 Opera 或 Firefox 中加载后,如何在网站上修补客户端 javascript?

html - CSS以类似正方形的方式重新排列div

javascript - 检查网站在不同浏览器上的外观

css - 如何垂直居中这个基于 css/javascript 的模式对话框?

javascript - 为什么 getFile() 不创建任何文件,即使我已将创建标志设置为 true?

javascript - 检索跨度值

javascript - 为什么 `video` 元素在 Firefox 中不会触发 `dragstart` 事件?

php - Bootstrap 4 导航栏是垂直的而不是水平的?