【问题标题】:How can I to add relative path to PIE.htc file?如何将相对路径添加到 PIE.htc 文件?
【发布时间】:2014-12-24 06:10:11
【问题描述】:

我的 CSS 文件中有与 PIE.htc 文件相关的规则,边框半径适用于 IE8,但这不适用于 IE7,在浏览器中检查我的 Web 控制台,这是输出:

// 当浏览器是 IE8 时(这是我的 IE 浏览器的 web 控制台的输出)
行为:url(css/PIE.htc);

//当浏览器是IE7时(这是我的IE浏览器的web控制台输出)
行为:url(./css/css/PIE.htc);

.circle{
    border: 1px solid #696;
    padding: 60px 0;
    text-align: center; width: 200px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    background: #EEFF99;
    behavior: url(css/PIE.htc);
}
<link rel="stylesheet" type="text/css" href="./css/ie-fix.min.css?v=1.0.4">     

<!-- html tag with the border radius -->

<div class="circle"></div>  

我无法解决这个问题,如何为 PIE.htc 文件添加允许 IE7 和 IE8 工作的相对路径??

注意:我的 PIE.htc 文件与 CSS 文件在同一个文件夹中

css/ie-fix.min.css
css/PIE.htc

感谢您的帮助!圣诞快乐!

【问题讨论】:

    标签: html css internet-explorer-8 internet-explorer-7


    【解决方案1】:

    尝试使用

    behavior: url(PIE.htc);
    

    【讨论】:

    • 不行,IE8 也不行,抱歉=(
    • 感谢您的帮助,解决此问题包括在示例 url(/PIE/PIE.htc) 中使用“/”;问题解决了,谢谢!
    猜你喜欢
    • 1970-01-01
    • 2021-01-02
    • 1970-01-01
    • 1970-01-01
    • 2010-11-28
    • 2019-12-22
    • 1970-01-01
    • 1970-01-01
    • 2017-05-16
    相关资源
    最近更新 更多