0

If I you go developer tools in IE10 or IE9 you can change Browser Mode to a previous IE version. The problem is that when I submit the page and the new page retrieved, it is shown in latest IE browser mode. Is it possible to fix (or default) the browser mode for every request to be shown in a previous IE version?

4

2 回答 2

1

If you really need to force IE to use an older rendering mode, you can put an X-UA-Compatible meta tag, as follows:

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

However, in general it's not a good idea to use compatibility mode. There are very few reasons to ever want to use it.

If your site looks better in compatibility mode than it does in IE10 mode then there is likely to be something in your page that needs to be fixed to work properly in IE10, rather than forcing IE to go backwards -- IE10 is pretty good at being standards-compliant, so if your code doesn't work in IE10 but does work in compatibility mode, then it is likely to have problems in other browsers as well.

于 2013-05-13T15:17:02.780 回答
0

是的,将以下 META 标记添加到您的页面标题(当然使用目标版本)

您还可以告诉 IE 在 Http Header 中使用什么引擎,META 标签会覆盖 Http 标头,仅供参考。

只是为了记录,您应该始终使用最新版本。针对过时版本的能力只是一个功能,主要用于企业应用程序和开发人员测试向后兼容性。

于 2013-05-13T14:25:18.167 回答