设置双核浏览器的浏览模式<meta name=“renderer” content=“webkit|ie-comp|ie-stand”>

参考网址:

http://blog.csdn.net/tototuzuoquan/article/details/18400789

http://camnpr.com/html-css/2087.html

http://www.15yan.com/story/1H1vIDRzhWc/

http://blog.csdn.net/www3300300/article/details/12992489

 

360浏览器内核控制Meta标签说明

<meta name="renderer" content="webkit|ie-comp|ie-stand">

content的取值为webkit,ie-comp,ie-stand之一,区分大小写,分别代表用webkit内核,IE兼容内核,IE标准内核。

若页面需默认用极速核,增加标签:<meta name="renderer" content="webkit">

若页面需默认用ie兼容内核,增加标签:<meta name="renderer" content="ie-comp">

若页面需默认用ie标准内核,增加标签:<meta name="renderer" content="ie-stand">

-----------------------------------------------------------------------------------------------------------------------------------------------------

X-UA-Compatible是针对IE8新加的一个设置,对于IE8之外的浏览器是不识别的。

1. <meta http-equiv="X-UA-Compatible" content="IE=5" />

像是使用了 Windows Internet Explorer 7 的 Quirks 模式,这与 Windows Internet Explorer 5 显示内容的方式很相似。

2. <meta http-equiv="X-UA-Compatible" content="IE=7" />

无论页面是否包含<!DOCTYPE>指令,均使用 Windows Internet Explorer 7 的标准渲染模式。

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

开启 IE8 的标准渲染模式,但由于本身 X-UA-Compatible 文件头仅支持 IE8 以上版本,因此等同于冗余代码。

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

Edge 模式通知 Windows Internet Explorer 以最高级别的可用模式显示内容,这实际上破坏了“锁定”模式。即如果你有IE9的话说明你有IE789,那么就调用高版本的那个也就是IE9。

 

5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">

如果IE有安装Google Chrome Frame,那么就走安装的组件,如果没有就和<meta http-equiv="X-UA-Compatible" content="edge" />一样。

说明:针对IE 6,7,8等版本的浏览器插件Google Chrome Frame,可以让用户的浏览器外观依然是IE的菜单和界面,但用户在浏览网页时,实际上使用的是Google Chrome浏览器内核。

 

6. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

EmulateIE7 模式通知 Windows Internet Explorer 使用<!DOCTYPE>指令确定如何呈现内容。标准模式指令以Windows Internet Explorer 7 标准模式显示,而 Quirks 模式指令以 IE5 模式显示。与 IE7 模式不同,EmulateIE7 模式遵循<!DOCTYPE>指令。对于多数网站来说,它是首选的兼容性模式。

 

 
posted @ 2017-07-05 18:02  南夏啊南夏  阅读(9649)  评论(0编辑  收藏  举报