0

我正在尝试使用 border-radius.htc 解决方案来获得圆角以在 IE8 中显示,但我遇到了困难。在 HTML 文件中,我使用放置在页面顶部附近的 IE8 条件来调用 IE8 特定样式表。在该样式表中,我有以下规则:

.navbar .nav .active > a,
.navbar .nav .active > a:hover {
behavior: url("border-radius.htc");
-webkit-border-radius: 5px 5px 0px 0px;
-moz-border-radius: 5px 5px 0px 0px;
border-radius:  5px 5px 0px 0px;
position:  relative;
zoom:  1;

}

当我在 IE8 中查看页面时,角落仍然是方形的。谁能告诉我为什么在 IE8 中没有应用圆角?我的 CSS 有问题吗?

4

1 回答 1

1

代替border-radius使用PIE.htc,从http://css3pie.com/下载它并放在你的文件中,代码是正确的,只需将behavior:url(“border-radius.htc”)替换为behavior:网址(“PIE.htc”)。

于 2012-07-11T12:46:49.563 回答