【发布时间】:2013-02-14 15:06:58
【问题描述】:
我在根目录中有 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 中不起作用。
感谢您的帮助。
【问题讨论】:
-
您是否将 PIE.js 文件包含在文件的开头? PIE.htc 也是相对于文件而不是 css
-
打开一个新标签并转到 your_domain/pie.htc。它会加载文件吗?
-
@EricLemos Lemos CSS3PIE 不需要任何 js 文件 - css3pie.com/documentation/getting-started
标签: html css rounded-corners css3pie