How To set IE mode by meta tag?

只谈情不闲聊 提交于 2019-12-13 20:33:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!