1.首先下载、安装Chrome Frame插件 (一定要发布到服务器上才起作用)

在线版很多,自己搜一下

离线版地址:http://download.csdn.net/detail/wd4java/8284975

安装成功后如上图

2.打开需要使用谷歌的页面

1、所有版本ie都使用谷歌插件

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

2、指定版本

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

3、检测Google Chrome框架并提示安装

<html>
<body><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script><style>/* CSS rules to use for styling the overlay:.chromeFrameOverlayContent.chromeFrameOverlayContent iframe.chromeFrameOverlayCloseBar.chromeFrameOverlayUnderlay*/</style> <script>// You may want to place these lines inside an onload handlerCFInstall.check({mode: "overlay",destination: "http://www.waikiki.com"});</script>
</body>
</html>

4、 CFInstall.check()

  • modeoptional
    How the user should be prompted when GCF is missing. Defaults to a value of inline that puts an iframe in the document that points to the value of url. If a value for node is specified this will control where the iframe is placed, else it will appear as the first child of the doucment's body element. If mode is set to overlay (recommended), an in-page dialog is displayed that floats over page content. If mode is popup, then url is opened in a new (popup) window. It's recommended that you only use a value of popup when calling check() from a user action, for instance the onclick handler of a buttonelement else popup blocking software may defeat the check.
  • urloptional
    Defaults to "http://google.com/chromeframe". Set this to change the URL that the prompt (either inline or in a popup) will navigate to. You might use this if you're using GCF on an intranet or closed environment and you want to prompt users to install from an alternate location.
  • destinationoptional
    The URL to navigate to once CFInstall detects that GCF has been installed.
  • nodeoptional
    The ID or reference to an element that will contain the iframe prompt. If no node is provided, the prompt iframe will be inserted at the top of the document.
  • onmissingoptional
    Function to be called when GCF is missing.
  • preventPromptoptional
    Boolean, defaults to false, which allows you to disable the default prompting mechanism. Use in conjunction with onmissing to implement your own prompt.
  • oninstalloptional
    Function that will be called when GCF is first detected after an install prompt is displayed.
  • preventInstallDetectionoptional
    Boolean, defaults to false. Set this to true to prevent CFInstall from checking whether GCF has been installed. Use this to prevent redirection.
  • cssTextoptional
    Style properties to apply to the prompt iframe when mode is inline.
  • classNameoptional
    CSS classes to apply to the prompt iframe when mode is inline.

5、 CFInstall.check()例子

<html>
<body><!--[if IE]><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script><style>.chromeFrameInstallDefaultStyle {width: 100%; /* default is 800px */border: 5px solid blue;}</style><div id="prompt"><!-- if IE without GCF, prompt goes here --></div><script>// The conditional ensures that this code will only execute in IE,// Therefore we can use the IE-specific attachEvent without worrywindow.attachEvent("onload", function() {CFInstall.check({mode: "inline", // the defaultnode: "prompt"});});</script><![endif]-->
</body>
</html>

详情请参考:http://www.chromium.org/developers/how-tos/chrome-frame-getting-started

ie 谷歌插件Chrome Frame相关推荐

  1. Chrome扩展:本地应用上传本地文件到谷歌插件,再由插件上传到服务器

    须知 谷歌扩展只能传输和JSON兼容的数据,可通过JSON.parse(JSON.stringify(form_data))判断兼容与否. 解决方案 FormData和JSON不兼容.要上传文件,可通 ...

  2. IE 加速插件之 Google Chrome Frame

    前言 IE 8 及以下版本的速度较慢. 特别是前端的js 和 css 内容较多时尤为突出. 就笔者的开发经验来说GWT, Ext JS, raphael , draw2d 等开发的系统在IE下使用是相 ...

  3. 《Chrome谷歌插件Top10》开发最好用的谷歌插件

    1.CSDN浏览器助手 万恶淫为首 ,万好CSDN主,反正你想要的美女工具啥的都有,对高颜值高效率需求的开发来说,信我安装就对了!!!! 安装方法 插件地址 (CSDN浏览器助手) crx插件本地安装 ...

  4. 好用到爆炸的Chrome谷歌插件下载——妈妈再也不用担心我找不到好的插件了

    今天来给大家分享几个很好用的谷歌插件,对你没看错 (没搞懂我为什么发了三次才成功...屏蔽我了吗...) 分别有: 有除广告的ADBlock 1.还有DarkReader把浏览器背景变黑的 2.还有T ...

  5. Google Chrome Frame

    Google Chrome Frame是谷歌最新发布的一款浏览器插件,这款插件针对IE浏览器的插件.根据宣传的说法是,这款插件可以让IE8用上Chrome的浏览器渲染引擎,以及Chrome的高性能V8 ...

  6. 告别IE给我们的web开发带来的困扰(使用chrome frame v8引擎)

    茶爸爸个人微信:benyzhous,公众号:cha-baba欢迎骚扰 由于客户所有机器必须使用IE6浏览器,导致我们在开发项目过程中遇到非常多的样式与性能问题,在偶然的一次使用360软件管家搜索chr ...

  7. vue 在浏览器控制台怎么调试 谷歌插件vue Devtools

    vue 在浏览器控制台怎么调试 谷歌插件vue Devtools 问题: vuejs里面的变量,怎么用浏览器的console查看? 例如,想在chrome里用console.log查看变量$data, ...

  8. 推荐给程序猿们好用的谷歌插件

    大家好,你们在用谷歌浏览器的时候一般会用什么插件呢?这里我给大家推荐几款特别好用的谷歌插件,让你的开发效率事半功倍,你值得拥有哦! 推荐插件之前,还是先说说谷歌浏览器插件安装方法: 方式一:心知肚明, ...

  9. 如何导出已有的谷歌插件,又如何把导出的插件安装到360浏览器中,又如何对插件小修小改?...

    平台之大势何人能挡? 带着你的Net飞奔吧!:http://www.cnblogs.com/dunitian/p/4822808.html 逆天常用的一些谷歌浏览器插件 http://www.cnbl ...

  10. 安装谷歌插件 ~ 一招轻松解决

    在安装谷歌插件的时候,由于网络原因经常失败.今天和大家分享如何在本地安装谷歌插件,希望可以帮助到有需要的小伙伴~ 赶快跟小编一起来看看吧 第一步: 由于谷歌浏览器的插件默认是不能在本地安装的,我们需要 ...

最新文章

  1. Kotlin 创建对象
  2. Openwrt之移动硬盘ext3/ext4格式化工具
  3. mysql函数大全最小,MySQL函数一览_MySQL函数全部汇总
  4. aws rds监控慢sql_AWS RDS SQL Server –监视数据库实例
  5. HDOJ-1002 A + B Problem II C语言
  6. Java 集合系列09之 Map架构
  7. Linux新建文件和目录的默认权限 - Umask
  8. SQL审核 | 如何使用 SQLE 进行开发阶段 SQL审核
  9. 使用python进行数据抽样
  10. Android 手机截屏
  11. 新浪与腾讯的开放平台对比
  12. 计算机房需要排风吗,机房新风排风系统怎么样 机房新风排风系统原理介绍【详解】...
  13. 看完阿里p8整理的Spring Security应用到源码手册,豁然开朗
  14. 解决IDEA中Tomcat服务器端口号被占问题
  15. ib物理hl难吗?ib物理考点避坑指南
  16. 文献翻译:SETNDS: A SET-based Non-dominated Sorting Algorithm for Multi-objective Optimization Problems
  17. 对作业管理系统的总结与期望
  18. TC Games问题解答:连接、卡顿、控制视角解决方法,无需安卓模拟器玩手机游戏
  19. android ratingbar不可点击,Android评分控件RatingBar使用实例解析
  20. VB“Automation 错误” 或 “无法定位程序输入点 DoOpenPipeStream 于动态链接库ScrRun.dll上”...

热门文章

  1. 用java开发pc软件
  2. Python FastAPI 微信公众号后台服务器验证
  3. OpenCL入门(一):简单概念
  4. cad立面索引符号 规范_园林景观设计规范——园林人都该知道!
  5. 2016年的题目总结
  6. 标杆企业华为背景——张蕾老师
  7. 爬虫入门知识+简单案例《python网络爬虫从入门到实践》静态网页抓取
  8. 游戏 Npk文件解压
  9. html做自我介绍模板,应聘自我介绍模板简短
  10. 通达信指标公式颜色代码、图标、函数 大全