【问题标题】:PIE.htc not working for IE8PIE.htc 不适用于 IE8
【发布时间】:2012-11-02 22:33:52
【问题描述】:

我在我的服务器上下载了 PIE.htc 的未压缩版本。

HTML

<!DOCTYPE html >
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Test</title>
        <link href="test.css" rel="stylesheet" type="text/css" />

    </head>
    <body>
        <div id="wrapper">          
            <div class="inside-wrapper">
                testing
            </div>
        </div>
    </body>
</html>

test.css

    .inside-wrapper{  
        border-radius: 5px;
        -moz-border-radius: 5px;
        -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
        border: 1px solid #C3D4DB;
        width: 150px;
        height:150px;   
        behavior: url(PIE.htc);
        position:relative;
        z-index: 100;
    }

我还添加了一个带有以下代码的 PIE.htaccess

AddType text/x-component .htc

我的 IIS 服务器已经配置为 .hta 作为 text/x-component

所有文件都在这里

C:\inetpub\wwwroot\testing

我没有在 IE8 中得到圆角。我错过了什么?

如果我按 F12 -> 查看 css -> 取消选中 behavior:url(PIE.htc); border-radius:5px -> 然后再次检查,它可以工作,但是当我刷新页面时,圆角会丢失。

【问题讨论】:

  • 如果您使用的是 IIS,htaccess 文件不会做任何事情。
  • 它正在工作。我下载了压缩文件。很奇怪 - 未压缩的文件 (PIE_uncompressed.htc) 不起作用。
  • 很高兴你解决了它。将解决方案作为答案写在下面并接受。这将帮助其他可能在未来找到问题的人。

标签: internet-explorer css internet-explorer-8 css3pie


【解决方案1】:

通过下载压缩文件(PIE.htc)解决。未压缩的文件 (PIE_uncompressed.htc) 不起作用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-05-07
    • 1970-01-01
    • 2014-08-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多