强制浏览器模式= IE8和文档模式= IE8标准 [英] Force Browser Mode=IE8 and document mode=IE8 Standards

查看:1239
本文介绍了强制浏览器模式= IE8和文档模式= IE8标准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS上托管了一个内部网站。我添加了以下元代码,并添加了页面应该在IE8浏览器模式和文档模式下的http-header。

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" >

我们在Visual Studio上进行了测试,并且效果非常好。

We tested it on Visual Studio and and it works very well.

然而,在我们将代码发布到另一个IIS服务器后,一位开发人员报告该页面呈现在IE8 Comatiblity浏览器模式中,导致某些JavaScript失败。

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.

有超过4人在同一个Windows Server 2003(RDP会话)上工作。
我们使用相同版本的IE(实际上是相同的IE)。每个人都获得IE8浏览器模式,但一个人获得IE8兼容性浏览器模式。

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.

还有什么可以使特定用户的IE以IE8以外的模式加载页面模式?

What else can make a specific user's IE load the page in a mode other than IE8 mode?

PS。
我们检查了IE中的兼容性列表;它是空的。

PS. We checked the compatibility list in the IE; it is empty.

推荐答案

我们发现它是由兼容性视图设置中的复选框引起的 - 在兼容性中显示内部网站点查看。

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。
是否从Intranet站点中排除了localhost?

PS. Is it true that "localhost" is excluded from intranet sites?

这篇关于强制浏览器模式= IE8和文档模式= IE8标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆