html - IE 10 或 IIS6 不支持 box.shadow

标签 html css iis-6 internet-explorer-10

我在使 box-shadow 工作时遇到问题。我运行了一个非常简单的程序,它生成一个带有 box-shadowdiv,它显示使用 Firefox 和 IE10 正确运行 XAMPP,但是当使用 IIS6 时,firefox 可以工作,而 IE10 不能.

<!DOCTYPE html>
<html>
    <head>
        <style> 
        div
        {
            width:300px;
            height:100px;
            background-color:yellow;
            box-shadow: 10px 10px 5px #888888;
        }
        </style>
    </head>

    <body>
        <div>allo</div>

    </body>
</html>

最佳答案

IE 可能没有使用 IE10 模式,您可以使用 Developer Tools(按 F12)进行检查。

如果没有,最简单的解决方法是在 head 中添加:

<meta http-equiv="X-UA-Compatible" content="IE=edge">

关于html - IE 10 或 IIS6 不支持 box.shadow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18709113/

相关文章:

asp.net - 如何将异常重定向到IIS 6中我无法访问源代码的网站的自定义页面|

python - 使用 IIS 6 托管 Mercurial

html - 如何在 Oracle SQL*Plus HTML 报告中指定 HTML 文档类型?

html - 在电子邮件的 HTML 文本中插入当前日期

mysql - 为什么我的 MySQL 数据库在 Windows IIS 6 上崩溃并出现 VMWARE 错误 1784

html - 在 Bootstrap 中更改导航栏长度

html - 单击图像后失去不透明度过渡

html - Shiny 的 renderText : half italicized, 一半不是吗?

php - html表格一页可以显示多少行?

jquery - 物化 CSS,显示自动完成的图像