Force Browser Mode=IE8 and document mode=IE8 Standards

断了今生、忘了曾经 提交于 2019-11-30 06:37:02

问题


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.


回答1:


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?




回答2:


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



来源:https://stackoverflow.com/questions/2597289/force-browser-mode-ie8-and-document-mode-ie8-standards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!