Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
494 views
in Technique[技术] by (71.8m points)

internet explorer 8 - Force Browser Mode=IE8 and document mode=IE8 Standards

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...