不应英寸×UA兼容IE =边缘"头越权QUOT;在兼容性视图&QUOT显示Intranet站点;在IE10? [英] Shouldn't "X-UA-Compatible IE=edge" header override "Display intranet sites in Compatibility View" in IE10?
问题描述
我有一个简单的HTML5 / ASP.NET网站,我在今天的IE10开始测试,因为它发布了Win7的。
I have a simple HTML5 / ASP.NET website that I started testing in IE10 today since it released for Win7.
这是我的组织内的一个内部网站,我相信一段时间回来有部署在默认情况下启用兼容性视图在显示Intranet站点组策略。
This is an intranet site within my organization, and I believe awhile back there was a group policy deployed to enable the Display intranet sites in Compatibility View by default.
今天我在测试中注意到的事情是,即使我添加的 X-UA兼容IE =边缘 HTTP头(通过我的web.config),该网站是在IE中显示为
The thing I noticed today in testing was that even though I am adding an X-UA-Compatible IE=edge HTTP header (via my web.config), the site is showing in IE as:
Browser Mode: IE10 Compat View
Document Mode: Standards
我相信我的HTML实际上是正常不过的,因为我可以简单的取消选中的在在兼容性视图中显示Intranet站点设置,当它重新加载,它会立即切换到:
I believe my HTML is actually OK though, because I can simply uncheck the Display intranet sites in Compatibility View setting and when it reloads, it immediately switches to:
Browser Mode: IE10
Document Mode: Standards
所以我的问题很简单,不应该在 IE =边缘头值覆盖在兼容性视图在显示Intranet站点设置?
So my question is simply, shouldn't the IE=edge header value override the Display intranet sites in Compatibility View setting?
如果没有,有没有什么办法,我的可以的覆盖它?
If not, is there any way I can override it?
推荐答案
(我会在这里,因为这个问题对我的谷歌搜索排名较高,但更多的挖掘之后,我居然发现在另一个SO问题的答案把这个:<一HREF =http://stackoverflow.com/a/13287226/1563> http://stackoverflow.com/a/13287226/1563 。我不知道他们是否应合并(至少不如果没有一些问题编辑))
(I'll put this here because this question ranked higher for my google search, but after more digging I actually found the answer on another SO question: http://stackoverflow.com/a/13287226/1563. I'm not sure if they should be merged (at least not without some question editing))
这是有可能发生,因为IE设置为(<大骨节病>替代骨节病> + <大骨节病> T 骨节病> |兼容性视图设置)在兼容性视图中显示Intranet站点
This is likely happening because IE is set to "Display intranet sites in Compatibility View" (Alt+T | Compatibility View settings)
您无法使用 X-UA兼容覆盖此设置
的 meta标签的,但你可以通过发送 X-UA兼容
的 http头的:
You can't override this setting using the X-UA-Compatible
meta tag but you can by sending the X-UA-Compatible
http header:
X-UA-Compatible: IE=edge
幸得 Lavinski 找到这个
这篇关于不应英寸×UA兼容IE =边缘&QUOT;头越权QUOT;在兼容性视图&QUOT显示Intranet站点;在IE10?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!