问题
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