ASP.NET Force IE8 to view compatibility with IE7 or IE8

I tried the following, and all it does is change the document mode, not the browser mode:

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

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

My personal page works only if the browser provides IE7 or IE8 view mode.

+3
source share
1 answer

The code you posted should work.

Please ensure the following:

  • The meta tag on the right is at the top of the title, like the first element after <title></title>.
  • Restart IE and open your page without manually setting the browser mode or document from the developer tools. Setting these parameters manually can overwrite IE behavior and cause it to ignore the compatibility tag.
+1

All Articles