为什么 border-radius 在使用 Internet Explorer 的特定网站中不起作用?

Why does border-radius not work in a specific website with Internet Explorer?

我们为 Google Chrome、Firefox、Safari 和 Internet Explorer 开发浏览器扩展。我们的扩展程序向网站插入 HTML 元素,例如 mail.google.com 和 email14.secureserver.net.

我们的 HTML 元素的 border-radius CSS 属性为 5px。在所有网站都很好,例如 mail.google.com 以及所有浏览器,但是在 https://email14.secureserver.net/webmail.php?login=1 和 Internet Explorer 中没有 border-radius,我看到这些属性为红色:

在mail.google.com中:

在email14.secureserver.net中:

有什么问题,这个网站是否禁用了 border-radius

有没有办法定义 border-radius 也适用于该网站?我看到 Internet Explorer 9 及更高版本支持 border-radius

如何检测 email14.secureserver.net 是否使用旧模式的 Internet Explorer?是否可以在不禁用此模式的情况下定义 border-radius

我使用的是 Internet Explorer 11,但此扩展应该适用于所有版本的 Internet Explorer。

根据你的第二个屏幕截图,在调用你的“border-top-left-radius:5px;

之前你有“borderRadius: 5px

borderRadius 的语法不正确,可能会取消它后面的代码。 ie9+ 支持 border-radius,所以你应该没有问题。

网站可以要求 IE 使用较旧的引擎来呈现它,检查检查器,它应该说明它是否使用了一些较旧的版本、古怪的兼容模式等。