问题
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.
来源:https://stackoverflow.com/questions/22013880/how-to-set-ie-mode-by-meta-tag