internet-explorer - PIE.htc 不适用于 IE8

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

我在我的服务器上下载了 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 作为文本/x-组件

所有文件都位于此处

C:\inetpub\wwwroot\testing

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

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

最佳答案

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

关于internet-explorer - PIE.htc 不适用于 IE8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13203937/

相关文章:

javascript - 导航下拉菜单(3 级)CSS/Javascript 的 IE7 兼容性问题

html - 如何为旧版浏览器设计这个 html Box

c# - WebBrowser 控件内存泄漏

javascript - DIV 不会固定在实验性 CSS3 菜单中

css - 二级菜单在 Drupal 7 中不正确 float

jquery - 无法将焦点移至控件 jQuery 1.7 ie8

html - Internet Explorer 11 在 div 上创建空白区域

asp.net - Telerik RadWindow 和标准 CSS 冲突(在 Internet Explorer 中)

twitter-bootstrap - Bootstrap 下拉菜单在 IE8 中不起作用

internet-explorer-8 - IE8 Javascript Profiler不显示源代码