ASP.NET Force IE8 to use IE7 or IE8 Compatability View
I've tried the following and all it does is change the Document Mode, not the B开发者_高级运维rowser Mode:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="X-UA-Compatible" content="IE=7">
My particluar page only works when the browser mode is either IE7 or IE8 Compat View.
The code you posted should work.
Please ensure the following:
- The meta tag is right at the top of the header, as first element after the
<title></title>
. - Restart IE and open your page without manually setting the Browser- or Document Mode from the Developer Tools. Setting these manually can overwrite IE's behavior and causes it to ignore the compatibility tag.
精彩评论