美文网首页
HTML笔记

HTML笔记

作者: DengXG | 来源:发表于2016-12-15 16:51 被阅读28次
<meta http-equiv="X-UA-Compatible" content="IE=edge">

Edge 模式告诉 IE 以最高级模式渲染文档

<meta http-equiv="X-UA-Compatible" content="chrome=1">

使用代码强制 IE 使用 Chrome Frame 渲染

提示 IE 用户安装 Google Frame
Google 官方提供了对 Google Frame 插件安装情况的检测,这里直接调用方法即可,如果检测到 IE 并未安装 Google Frame,则弹出对话框提示安装。

<script src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script><script>CFInstall.check();</script>

最佳的兼容模式方案,结合考虑以上两种:

< meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />

相关文章

网友评论

      本文标题:HTML笔记

      本文链接:https://www.haomeiwen.com/subject/jrdgmttx.html