在ie9中以兼容模式进行网站渲染

时间:2013-09-22 20:10:27

标签: internet-explorer internet-explorer-9 compatibility ie-compatibility-mode

我遇到了passyunkpost.com的问题。我无法复制问题,但网站所有者在IE9中遇到问题,其中徽标和其他项目无法正常工作。我尝试使用此代码:<meta http-equiv="X-UA-Compatible" content="IE=9">但这会呈现一个空白页面。

有没有人有任何解决方法的建议?

1 个答案:

答案 0 :(得分:0)

有点晚,但meta标记需要是头部第一个标记

YES

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

NO

<head>
    <title>Title</title>
    <meta other-meta-tags />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>

我在使用meta标签方面遇到了麻烦。如果您正在使用PHP,您也可以设置此标头。这似乎可以提供更一致的结果:

header("X-UA-Compatible: IE=Edge");