开发者

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:

  1. The meta tag is right at the top of the header, as first element after the <title></title>.
  2. 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.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜