<!--[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写法能够达到的效果是若是安装了GCF,则使用GCF来渲染页面,若是未安装GCF,则使用最高版本的IE内核进行渲染。css
百度首页那么点东西他固然不在意用哪一种模式,更多地去照顾老式浏览器; 搜索页倾向于速度有GCF的时候更愿意使用chorme渲染。html
不得不吐槽,国内各的银行支付时的兼容支持,由此 IE=Edge
,使 IE 以最新模式渲染获得你们的共同承认彷佛也无可厚非。前端
<!-- 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" />
apple-mobile-web-app-capable
开始桌面全屏模式<!--[if lt IE 8]> <div class="g_tips"> <p>已经有超过90%的用户使用更高版本 <a target="_blank" title="下载Chrome" href="http://www.google.com/chrome/">Google Chrome</a> 或 <a target="_blank" href="http://www.microsoft.com/zh-cn/download/ie.aspx?q=internet+explorer">Internet Explorer</a> 体验到了更精彩的页面,你还不试试?</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> 已经有超过90%的用户使用更高版本 <a target="_blank" title="下载Chrome" href="http://www.google.com/chrome/">Google Chrome</a> 或 <a target="_blank" href="http://www.microsoft.com/zh-cn/download/ie.aspx?q=internet+explorer">Internet Explorer</a> 体验到了更流畅更精彩的页面,你还不试试? </p> </div> <![endif]--> <h1>300,000,00</h1> <script src="js/index.js"></script> <script>// js </script> </body> </html>
做为一个前端开发,这些你作了吗?html5