开发者

IE8 Compatibility and Document mode

I want to make IE 8 understand my site as IE8. And not in IE7, compatibility mode, etc.

I have had a lot of issues to do this, even the same site in my localhost was different that in the production server. (开发者_JAVA百科Never mind what language, happened with: php and asp.net).

I've been watching these links:

https://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx

https://msdn.microsoft.com/en-us/library/cc817574.aspx

But I cound not get anything.

Update:

Yes, that is exactly what I want, force IE not to render the page in compatibility mode


It's important to understand the difference between Browser Mode and Document Mode.

Document Mode is under the control of the document. Setting the X-UA-Compatible or DocType controls the Document Mode.

Browser Mode is NOT under the control of the document, and affects the User-Agent String and Conditional Comments/Version Vector. Browser Mode is controlled by the user's Compatibility View settings, and the URL of the document. If the document is on your Intranet, for instance, by default it is in the Compatibility Browser Mode. This can be disabled by clicking Tools > Compatibility View Settings > and unticking "Display Intranet Sites in Compatibility View."

You can see (and temporarily override) both modes in the IE Developer Tools (hit F12).


I didn't get much of your link either, but when I changed the language to English, it became rather comprehensible.

Have you tried

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

That should tell IE8 to render the page using the latest IE engine and settings, with no "old browser emulation".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜