html - 无法让 PIE 在 IE8 中为 border-radius 工作

标签 html css internet-explorer css3pie

我的 CSS 中有这个:

.myAwesomeElement {
    position: relative;
    z-index: 0;
    zoom: 1;
    border: 1px solid #999;
    -webkit-border-radius: 10px;
       -moz-border-radius: 10px;
            border-radius: 10px;
    background: #6699CC;
    behavior: url(PIE.htc);
}

我的 HTML 中有这个

 <input type="button" class="myAwesomeElement" value="#myAwesomeElement" onClick="">

PIE.htc 文件与 HTML 文件位于根目录中。

当我在 IE8 中查看时,按钮显示但没有圆边。

我错过了什么吗?

最佳答案

CSS 中的文件路径是相对于样式表的,而不是根目录。

尝试:

behavior: url(/PIE.htc);

关于html - 无法让 PIE 在 IE8 中为 border-radius 工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13573568/

相关文章:

html - <ul> 悬停的 CSS <ul> 右侧丢失

html - 带有水平子菜单的水平菜单栏在 IE 中不起作用

jquery - 无法在 Internet Explorer 中将样式表添加到 iframe

javascript - Google 脚本 HTML 请求 - 发布

javascript - HTML 5 Canvas/requestAnimationFrame 在 Safari 7.0 中损坏了吗?

html - 您可以将列表项数字放在自己的行上吗?

css - modalDialog 不在 css 中滚动

css - 如何制作全宽超大屏幕?

javascript - 无法触发链接上的点击事件

php - 表单发送空白值