简体   繁体   中英

meta http-equiv X-UA-Compatible

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

the above line of code forces the browser to make

Document mode to IE 9 standard and Browser mode to IE 9 Compatiblity mode

How can i make Document mode to IE 9 standard and browser mode to IE 9 mode

this works for me..

<!DOCTYPE html>
<html>
<head>
<title>title</title>    
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

Do you have any other links or scripts above your X-UA-Compatible meta tag in your <head> ? If so this might be causing the problem.

Also make sure to check the compatibility settings in your browser itself by going to:

Tools --> Compatability View Settings

There are several possible explanations, such as HTTP headers overriding the meta tag, domain name being blacklisted by Microsoft, or your local admin having forced IE to Compatibility mode. For a description of some possibilities and possible cures, check out IE8 and IE9 Complications in “Activating Browser Modes with Doctype”.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM