0

我有一个网站,IE8、IE9 和 IE10 在来自 IIS/7 的 HTTP 标头响应中使用 IE=EmulateIE7 模式总是运行良好,但这种模式在 IE11 中似乎无法正确呈现。

尽管在 IE8 到 IE10 中的 EmulateIE7 模式下它可以正常工作,但该页面在 IE11 中无法呈现或正常运行。如果我在 IE11 上打开 F12 工具,我看到文档模式是“7”。

使IE11正常工作的唯一方法是手动将域添加到兼容性视图模式,然后效果很好;但我们不能要求所有用户手动激活我们域的兼容性视图。

如何在不将域添加到兼容性网站列表的情况下强制 IE11 呈现为 IE7?

非常感谢任何帮助!

4

2 回答 2

0

如果我在 IIS 本身中添加 X-UA-Compatible 标头,我就可以让它工作。不知道为什么添加到 web.config 时它不起作用

于 2013-12-03T16:29:15.793 回答
0

I've been working on this the last few days and there's some bad news, it works, but in order to make it work, the user must add the URL/Domain of your site to the "Compatibility View Settings" of IE 11.

In other words, you can't force the browser to render in compatibility mode without the explicit acceptance of the user.

You will find how to configure it here:

www.windows8core.com/how-to-view-and-configure-compatibility-settings-in-internet-explorer-11-of-windows-8-1/

于 2013-11-15T01:59:55.720 回答