How To set IE mode by meta tag?

2019-09-05 15:26发布

问题:

I have created site on MVC 4 and deployed on IIS 7.5.

Now, when this site is open at any client IE browser then it sets COMPATIBILITY MODE automatically and some CSS not worked properly.

It is hosted for intranet purpose.

Please suggest me how i could restrict explicitly or any suggestion.

回答1:

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

This will make browser use the latest version of IE available to it. Thus if it is IE9 set to IE7 compatiability mode it will use IE9 rendering.

It should fix those issues, as it's helped me in identical scenario.