ie 谷歌插件Chrome Frame
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()
mode
: optional
How the user should be prompted when GCF is missing. Defaults to a value ofinline
that puts an iframe in the document that points to the value ofurl
. If a value fornode
is specified this will control where the iframe is placed, else it will appear as the first child of the doucment'sbody
element. Ifmode
is set tooverlay
(recommended), an in-page dialog is displayed that floats over page content. If mode ispopup
, thenurl
is opened in a new (popup) window. It's recommended that you only use a value ofpopup
when callingcheck()
from a user action, for instance theonclick
handler of abutton
element else popup blocking software may defeat the check.url
: optional
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.destination
: optional
The URL to navigate to onceCFInstall
detects that GCF has been installed.node
: optional
The ID or reference to an element that will contain theiframe
prompt. If nonode
is provided, the promptiframe
will be inserted at the top of the document.onmissing
: optional
Function to be called when GCF is missing.preventPrompt
: optional
Boolean, defaults tofalse
, which allows you to disable the default prompting mechanism. Use in conjunction withonmissing
to implement your own prompt.oninstall
: optional
Function that will be called when GCF is first detected after an install prompt is displayed.preventInstallDetection
: optional
Boolean, defaults tofalse
. Set this totrue
to preventCFInstall
from checking whether GCF has been installed. Use this to prevent redirection.cssText
: optional
Style properties to apply to the promptiframe
whenmode
isinline
.className
: optional
CSS classes to apply to the promptiframe
whenmode
isinline
.
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相关推荐
- Chrome扩展:本地应用上传本地文件到谷歌插件,再由插件上传到服务器
须知 谷歌扩展只能传输和JSON兼容的数据,可通过JSON.parse(JSON.stringify(form_data))判断兼容与否. 解决方案 FormData和JSON不兼容.要上传文件,可通 ...
- IE 加速插件之 Google Chrome Frame
前言 IE 8 及以下版本的速度较慢. 特别是前端的js 和 css 内容较多时尤为突出. 就笔者的开发经验来说GWT, Ext JS, raphael , draw2d 等开发的系统在IE下使用是相 ...
- 《Chrome谷歌插件Top10》开发最好用的谷歌插件
1.CSDN浏览器助手 万恶淫为首 ,万好CSDN主,反正你想要的美女工具啥的都有,对高颜值高效率需求的开发来说,信我安装就对了!!!! 安装方法 插件地址 (CSDN浏览器助手) crx插件本地安装 ...
- 好用到爆炸的Chrome谷歌插件下载——妈妈再也不用担心我找不到好的插件了
今天来给大家分享几个很好用的谷歌插件,对你没看错 (没搞懂我为什么发了三次才成功...屏蔽我了吗...) 分别有: 有除广告的ADBlock 1.还有DarkReader把浏览器背景变黑的 2.还有T ...
- Google Chrome Frame
Google Chrome Frame是谷歌最新发布的一款浏览器插件,这款插件针对IE浏览器的插件.根据宣传的说法是,这款插件可以让IE8用上Chrome的浏览器渲染引擎,以及Chrome的高性能V8 ...
- 告别IE给我们的web开发带来的困扰(使用chrome frame v8引擎)
茶爸爸个人微信:benyzhous,公众号:cha-baba欢迎骚扰 由于客户所有机器必须使用IE6浏览器,导致我们在开发项目过程中遇到非常多的样式与性能问题,在偶然的一次使用360软件管家搜索chr ...
- vue 在浏览器控制台怎么调试 谷歌插件vue Devtools
vue 在浏览器控制台怎么调试 谷歌插件vue Devtools 问题: vuejs里面的变量,怎么用浏览器的console查看? 例如,想在chrome里用console.log查看变量$data, ...
- 推荐给程序猿们好用的谷歌插件
大家好,你们在用谷歌浏览器的时候一般会用什么插件呢?这里我给大家推荐几款特别好用的谷歌插件,让你的开发效率事半功倍,你值得拥有哦! 推荐插件之前,还是先说说谷歌浏览器插件安装方法: 方式一:心知肚明, ...
- 如何导出已有的谷歌插件,又如何把导出的插件安装到360浏览器中,又如何对插件小修小改?...
平台之大势何人能挡? 带着你的Net飞奔吧!:http://www.cnblogs.com/dunitian/p/4822808.html 逆天常用的一些谷歌浏览器插件 http://www.cnbl ...
- 安装谷歌插件 ~ 一招轻松解决
在安装谷歌插件的时候,由于网络原因经常失败.今天和大家分享如何在本地安装谷歌插件,希望可以帮助到有需要的小伙伴~ 赶快跟小编一起来看看吧 第一步: 由于谷歌浏览器的插件默认是不能在本地安装的,我们需要 ...
最新文章
- Kotlin 创建对象
- Openwrt之移动硬盘ext3/ext4格式化工具
- mysql函数大全最小,MySQL函数一览_MySQL函数全部汇总
- aws rds监控慢sql_AWS RDS SQL Server –监视数据库实例
- HDOJ-1002 A + B Problem II C语言
- Java 集合系列09之 Map架构
- Linux新建文件和目录的默认权限 - Umask
- SQL审核 | 如何使用 SQLE 进行开发阶段 SQL审核
- 使用python进行数据抽样
- Android 手机截屏
- 新浪与腾讯的开放平台对比
- 计算机房需要排风吗,机房新风排风系统怎么样 机房新风排风系统原理介绍【详解】...
- 看完阿里p8整理的Spring Security应用到源码手册,豁然开朗
- 解决IDEA中Tomcat服务器端口号被占问题
- ib物理hl难吗?ib物理考点避坑指南
- 文献翻译:SETNDS: A SET-based Non-dominated Sorting Algorithm for Multi-objective Optimization Problems
- 对作业管理系统的总结与期望
- TC Games问题解答:连接、卡顿、控制视角解决方法,无需安卓模拟器玩手机游戏
- android ratingbar不可点击,Android评分控件RatingBar使用实例解析
- VB“Automation 错误” 或 “无法定位程序输入点 DoOpenPipeStream 于动态链接库ScrRun.dll上”...