1. 程式人生 > >設置雙核瀏覽器的瀏覽模式<meta name=“renderer” content=“webkit|ie-comp|ie-stand”>

設置雙核瀏覽器的瀏覽模式<meta name=“renderer” content=“webkit|ie-comp|ie-stand”>

end tail 設置 菜單 內容 一個 chrom 調用 ssg

參考網址:

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>指令。對於多數網站來說,它是首選的兼容性模式。

設置雙核瀏覽器的瀏覽模式<meta name=“renderer” content=“webkit|ie-comp|ie-stand”>