<!--[if lt IE 9]><script>(function(){ var tags = ['header','footer','figure','figcaption','details','summary','hgroup','nav','aside','article','section','mark','abbr','meter','output','progress','time','video','audio','canvas','dialog']; for(var i=tags.length - 1;i>-1;i--){ document.createElement(tags[i]);}})();</script><![endif]--><style>header,footer,section,article,aside,nav,figure{display:block;margin:0;padding:0;border:0;}</style>
<!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!-- [if lt IE 9]><script src="http://g.tbcdn.cn//tb/mytaobao/12.12.15/common/??html5shiv-min.js"></script><![endif]-->
<meta http-equiv=X-UA-Compatible content=IE=EmulateIE7>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
chrome=1寫法可以達(dá)到的效果是如果安裝了GCF,則使用GCF來渲染頁面,如果未安裝GCF,則使用最高版本的IE內(nèi)核進(jìn)行渲染。
百度首頁那么點(diǎn)東西他當(dāng)然不在乎用哪種模式,更多地去照顧老式瀏覽器; 搜索頁傾向于速度有GCF的時(shí)候更愿意使用chorme渲染。
不得不吐槽,國內(nèi)各的銀行支付時(shí)的兼容支持,由此第三種得到大家的共同認(rèn)可似乎也無可厚非。
<!-- Mobile Specific Metas================================================== --><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no"><meta name="apple-mobile-web-app-capable" content="yes" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /><meta content="yes" name="apple-mobile-web-app-capable" />
<!--[if lt IE 8]><div class="g_tips"> <p>已經(jīng)有超過90%的用戶使用更高版本 <a target="_blank" title="下載Chrome" >Google Chrome</a> 或 <a target="_blank" >Internet Explorer</a> 體驗(yàn)到了更精彩的頁面,你還不試試?</p></div><![endif]--><style>.g_tips{background:#FFF691;color:#010101;text-align:center;height:40px;line-height:40px;font-family:'STHeiti','\5fae\8f6f\96c5\9ed1'}.g_tips a{color:#676767;padding:0 2px;zoom:1}</style>
<!DOCTYPE HTML><html><head> <meta charset="UTF-8"> <title>頁面名稱</title> <meta name="keywords" content=""/> <meta name="description" content=""/> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes" /> <!-- CSS ================================================== --> <link rel="shortcut icon" href="http://www.yunos.com/favicon.ico"> <link rel="stylesheet" href="http://m.alicdn.com/css/index.css"/> <style>/* css */</style></head> <body> <!--[if lt IE 8]> <div class="g_tips"> <p> 已經(jīng)有超過90%的用戶使用更高版本 <a target="_blank" title="下載Chrome" >Google Chrome</a> 或 <a target="_blank" >Internet Explorer</a> 體驗(yàn)到了更流暢更精彩的頁面,你還不試試? </p> </div> <![endif]--> <h1>300,000,00</h1> <script src="js/index.js"></script> <script>// js </script></body></html>
作為一個(gè)前端開發(fā),這些你做了嗎?
本文地址:http://www.cnblogs.com/v10258/p/3520520.html