强制浏览器模式 = IE8 和文档模式 = IE8 标准

发布于 2024-08-27 17:23:29 字数 484 浏览 2 评论 0原文

我有一个托管在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

财迷小姐 2024-09-03 17:23:29

我们发现这是由“兼容性视图设置”-“在兼容性视图中显示内联网站点”中的复选框引起的。

取消选中该框后效果很好。

附言。
“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?

野味少女 2024-09-03 17:23:29

后 UI 没有差异

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

它仍然以“兼容视图”模式打开,但在其作品中,添加脚本

its still opening in "Compat View " Mode but in its works, no differences in UI aftert adding

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

script

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文