Force IE compatibility mode off in IE using tags for browser mode

孤街浪徒 提交于 2019-12-13 04:37:06

问题


I am using html5 with angularJs using follwoing tag

This results in Browser mode set to IE8 Compat, and Document mode set to IE8 Standards.

 <!doctype html>
 <html xmlns:ng="http://angularjs.org" id="ng-app"  ng-app="myApp">

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

This results in Browser mode="IE8 Compat" and Document mode="IE8 Standards".

How can i force for the IE Document Mode=IE8 Standards too, so my stuff will start working


回答1:


You want IE=edge, it will force the browser to use the latest version it has (IE8 will act as IE8, not compatibility mode) and removes the button for compatibility mode. This will give the best results for AngularJS

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

Also, if you are running the site locally, IE will pick up on that and force compatibility mode on. You can change this setting in IE, go to Tools –> Compatibility ViewSettings -> Uncheck "Display intranet sites in Compatibility View".



来源:https://stackoverflow.com/questions/21141922/force-ie-compatibility-mode-off-in-ie-using-tags-for-browser-mode

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