引用
IE 关于X-UA-Compatible
关于X-UA-Compatible
目前绝大多数网站都用
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ >
来作为IE8的兼容方法,虽然微软将IE向标准迈进了一大步,而事实上IE8还存在一系列渲染的奇怪现象是不争的事实。
谁让IE6那么多呢,或许2014年以后我们可以有更多的时间去关心IE8,而不是IE6或者IE7。
在X-UA-Compatible中可用的方法有:
<meta http-equiv=”X-UA-Compatible” content=”IE=5″ >
<meta http-equiv=”X-UA-Compatible” content=”IE=7″ >
<meta http-equiv=”X-UA-Compatible” content=”IE=8″ >
<meta http-equiv=”X-UA-Compatible” content=”IE=edge” >
其中最后一行是永远以最新的IE版本模式来显示网页的。
另外加上
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ >
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE8″ >
而使用,Emulate模式后则更重视<!DOCTYPE>所以目前来说还是以
<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ >
为首选。微软自己创下的罪孽让他自己去扫吧。
转载自火跃
网址:http://www.huoyue.org/x-ua-compatible
引用
IE9应用低版本IE模式(转自http://tech.liuj.in/?p=34)
最近基于GWT2.2.0 开发的产品在IE9下报出了bug,临时用启动选择IE8标准模式解决的。换GWT2.4.o就解决了,不过还是把应用版本模式的方法写在这里。
设置X-UA-Compatible的meta header理所应当能启动模式,但是注意这里,此段header前,最好不要加除了title和其他meta外的任何标签和注释
当然IE的测试也很恐怖,最好close all the windows才靠谱。
官方文档大概这样写的
The X-UA-Compatible header is not case sensitive; however, it must appear in the header of the webpage (the HEAD section) before all other elements except for the title element and other meta elements.
参考资料
官方文档: http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx
民间文章:http://www.swingworks.net/2011/08/x-ua-compatible_breaks_in_ie9/
于是,如此这般
<head>
<title>Loading...</title>
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<!--[if IE 7]>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<![endif]-->
相关文章:
关于IE9中X-UA-Compatible失效的问题
http://www.swingworks.net/2011/08/x-ua-compatible_breaks_in_ie9/
使用X-UA-Compatible来设置IE8/IE9兼容模式
http://simpleframework.net/bbs/836/13897.html
分享到:
相关推荐
当你引入一个增设的兼容性模式,此文章说明文件兼容性的必要性,列出现有版本IE能使用的文件兼容性模式并示范如何选择特定的兼容性模式。 了解文件兼容性的必要性 每个主要版本IE新增的功能都是为了让浏览器更容易...
X-UA-Compatible是针对ie8新加的一个设置,对于ie8之外的浏览器是不识别的,这个区别与content="IE=7"在无论页面是否包含<!DOCTYPE>指令,都像是使用了 Windows Internet Explorer 7的标准模式。而content="IE=...
meta http-equiv=”X-UA-Compatible” content=”IE=9; IE=8; IE=7; IE=EDGE” />1、这个到底是什么意思? 2、一些示例使用”,”分离IE的版本,而一些使用”;“,哪个正确? 3、我想知道IE=9; IE=8; IE=7; IE=...
在快速中间件中设置X-UA-Compatible标头。 强制IE使用最新的渲染引擎,如果已安装,默认为chrome-frame 安装 npm install ua-compatible --save 用法 var express = require('express') var app = express() var ...
使IE5,IE6,IE7,IE8兼容到IE9模式 <!–[if lt IE 9]> ”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script> <![endif]–> 解决PNG显示问题 只需将透明png图片命名为*-trans.png 需要注意...
那么就要用下面的方法:让网页兼容ie9 复制代码代码如下: <!–[if lte IE 8]> <meta http-equiv=”x-ua-compatible” content=”ie=7″ /> <![endif]–> <!–[if IE 9]> <meta http-equiv=”x-ua-...
在网站开发中不免因为各种兼容问题苦恼,针对兼容问题,其实IE给出了解决方案Google也给出了解决方案 百度也应用了这种方案去解决IE的兼容问题 百度源代码如下 ...这句话的意思是强制使用IE7模式来解析网页代码!
x-ua-compatible 用来指定IE浏览器解析编译页面的model x-ua-compatible 头标签大小写不敏感,必须用在 head 中,必须在除 title 外的其他 meta 之前使用。 1、使用一行代码来指定浏览器使用特定的文档模式。 <...
META HTTP-EQUIV="X-UA-Compatible" CONTENT="IE=EmulateIE7"> 2、 修改webcontent/birt/ajax/lib 文件下 /prototype.js 第564行 var Ajax={这行 交换加载顺序 代码如下: var Ajax = {getTransport: function() ...
从 IE 8 开始,IE 添加了兼容模式,开启后会以低一版本的 IE 进行渲染。...但是我就遇到了一种情况,在 IE8 下只有不使用兼容模式页面才能显示正常,但是如果设定为 IE8 的模式,在 IE9 中却会导致 C
IE浏览器从IE8开始添加了兼容模式,开启后会以低版本的IE进行渲染。...还有一种情况,在IE8下只有不使用兼容模式页面才能显示正常,但是如果设定为IE8的模式,在IE9中却会导致CSS3失效。看来,需要针对 IE8、IE9
热门的tag非IE8莫属 各浏览器厂商争相发布版本更新 部分网页也存在与IE8的...meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 只要IE8读到这个标签,它就会自动启动IE7兼容模式,保证页面完整展示
meta http-equiv=X-UA-Compatible content=IE=edge> <meta name=viewport content=width=device-width, initial-scale=1> <title>Bootstrap IE8兼容性</title> <link href=css/bootstrap...
X-UA-Compatible:是针对ie8新加的一个设置,对于ie8之外的浏览器是不识别的,这个区别与 content="IE=7"在无论页面是否包含<!DOCTYPE>指令,都像是使用了 Windows Internet Explorer 7 的标准模式。而content=...
浏览器使用IE7兼容模式,利用IE7渲染模式,这样可以保证最大的兼容性。 但若网站有很多页面。若一页一页改,那要累晕的,可以考虑在IIS里加入如下描述符: 复制代码代码如下: <?xml version=”1.0″ encoding=”...
由于家里用的是IE8,在公司测试好的页面回家却会有一些问题发生,所以在网上寻找了一下解决办法,加几行代码就可以让访问的IE8自动调用IE7的渲染模式,这样可以保证最大的兼容性,原文如下,经测试好用,推荐给大家:...
meta http-equiv=”x-ua-compatible” content=”ie=7″ /> 替换为 复制代码代码如下: <!–[if lte IE 8]> <meta http-equiv=”x-ua-compatible” content=”ie=7″ /> <![endif]–> <!–[if IE