强制浏览器模式 = IE8 和文档模式 = IE8 标准
我有一个托管在 IIS 上的内部网站。我添加了以下元代码,并添加了页面应在 IE8 浏览器模式和文档模式下的 http-header。
<meta http-equiv="X-UA-Compatible" content="IE=8" >
我们在 Visual Studio 上对其进行了测试,效果非常好。
然而,在我们将代码发布到另一台 IIS 服务器后,一位开发人员报告说页面以“IE8 Comatiblity”浏览器模式呈现,导致某些 JavaScript 失败。
有超过 4 个人在同一个 Windows Server 2003(RDP 会话)上工作。 我们使用相同版本的 IE(实际上是相同的 IE)。每个人都会获得“IE8”浏览器模式,但只有一个人会获得“IE8 兼容性”浏览器模式。
还有什么可以让特定用户的IE以IE8模式以外的模式加载页面呢?
附言。 我们检查了IE中的兼容性列表;它是空的。
I have a internal website hosted on IIS. I added the following meta code and also add http-header that the page should in IE8 Browser mode and document mode.
<meta http-equiv="X-UA-Compatible" content="IE=8" >
We tested it on Visual Studio and and it works very well.
However, after we publish the code to another IIS server, one developer reported that the page render in "IE8 Comatiblity" Browser Mode which causes some JavaScript to fail.
There are more then 4 people working on the same windows server 2003 (RDP sessions).
We use the same version of IE (same IE actually). Everyone get "IE8" Browser Mode but one person gets "IE8 Compatibility" Browser Mode.
What else can make a specific user's IE load the page in a mode other than IE8 mode?
PS.
We checked the compatibility list in the IE; it is empty.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们发现这是由“兼容性视图设置”-“在兼容性视图中显示内联网站点”中的复选框引起的。
取消选中该框后效果很好。
附言。
“localhost”是否被排除在 Intranet 站点之外?
We found it was caused by the checkbox in "Compatibility view settings" - "Display intranet sites in Compatibility View".
It works well after uncheck the box.
PS.
Is it true that "localhost" is excluded from intranet sites?
后 UI 没有差异
它仍然以“兼容视图”模式打开,但在其作品中,添加脚本
its still opening in "Compat View " Mode but in its works, no differences in UI aftert adding
script