meta http-equiv X-UA-Compatible

你离开我真会死。 提交于 2020-01-17 03:53:08

问题


<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


回答1:


this works for me..

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



回答2:


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




回答3:


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”.



来源:https://stackoverflow.com/questions/14230970/meta-http-equiv-x-ua-compatible

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