问题描述
1。打开IE8
2。按F12
3。 load msdn.com
1 . open IE8
2 . press F12
3 . load msdn.com
你应该看到
4。打开一个新标签并加载
你应该看到
4 . open a new tab and load this siteyou should see
请告诉我第二页上触发IE8 Compat View IE7标准的内容
Please tell me what on the second page triggers the IE8 Compat View IE7 Standards
在相关页面上,我们不设置X-UA兼容的元标记(然而,我们正考虑将其设置为EDGE)并且我们不会在标题中发送X-UA-Compatible。
On the page in question, we do NOT set the X-UA-Compatible meta tag (yet, we are thinking of setting it to EDGE) and we are not sending X-UA-Compatible in the header.
我不知道我的浏览器在哪里设置这个,我知道三个测试中的一个,ONE没有问题,另外两个没有。
I do not know where in my browser I could set this, I do know that of the three testing this, ONE does not have the issue and the other two do.
推荐答案
有三件事可能导致页面在IE7模式下打开:
There are three things which can cause a page to open in IE7 mode:
-
浏览器配置。这可能是一个问题,特别是对于本地内部网上的网站。
Browser configuration. This may be an issue particularly for sites on ones local intranet.
X-UA兼容
元标记。
X-UA兼容
HTTP标头。
浏览器配置问题可以被 X-UA-Compatible
变体覆盖。
The browser configuration issue can be overridden by either of the X-UA-Compatible
variants.
如果你确定它不是你的浏览器配置,你就看不到相关的< meta>
代码中的标签,然后可能是 X-UA-Compatible
设置作为HTTP标头提供,并且具体告诉浏览器进入IE7模式。
If you are sure it's not your browser config, and you can't see a relevant <meta>
tag in the code, then it may be that the X-UA-Compatible
setting is being served as an HTTP header and is being specific in telling the browser to go into IE7 mode.
提供 X-UA兼容
设置没有任何问题,但设置更常见IE的版本高于较低版本的IE;较低的设置通常仅用于显式降级浏览器以查找真正的旧网站。
There's nothing wrong with serving an X-UA-Compatible
setting, but it is more common to set a higher version of IE than a lower one; the lower setting would normally only be used to explicitly downgrade the browser for really old sites.
浏览器配置可能有问题,因为即使您在计算机上关闭它,您永远无法确定其他用户如何配置其浏览器。因此,在大多数情况下,最好将 X-UA-Compatible
作为元标记或HTTP标头提供。
The browser configuration can be problematic because even if you switch it off on your machine, you can never be sure how other users have their browsers configured. For this reason, it is good practice to serve X-UA-Compatible
either as a meta tag or an HTTP header in most cases.
这篇关于什么是触发此页面上的IE7标准模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!