Pie.htc 没有修复 CSS3 问题



我有 PIE。HTC 在根目录中,并尝试使圆角在 Internet Explorer 中工作

这是我的 CSS

#credits-earned
{
    border-style:solid;
    border-width:2px;
    border-color:#EDEDED;
    width:170px;
    height:60px;
    margin-bottom:10px;
    font-weight: bold;
    border-radius:8px;
    behavior: url (PIE.htc);
}

这试图生效的 HTML 是:

<div id="credits-earned">
                        You need to earn X<br> more credits today to avoid losing credits
                    </div>

但是圆角在IE中不起作用。

任何帮助不胜感激。

当在

外部 css 文件中包含资源时,URL 相对于 css 文件。

如果要包含来自不同目录的内容,可以使用相对路径(示例behavior:url('../PIE.htc')(或使用绝对路径(示例behavior:url('/PIE.htc')(

有关样式表中路径的更多信息 - 在CSS文件中使用相对URL,它相对于什么位置?

除了 pie.htc 工作的正确路径外,给出:

 #credits-earned
 { position: relative;
 }

最新更新