我上个月看过Chrome Frame关闭,因此我试图了解它对X-UA标签意味着什么,经过3个小时的研究后我仍然找不到我想要的答案,我的问题如下:
现在仍然有效使用IE = edge,chrome = 1还是应该从现在开始停在IE-edge?或者,对于X-UA,最好的做法是什么呢?
html internet-explorer meta-tags google-chrome-frame x-ua-compatible
如果用户使用过时的浏览器,我会有一个页面提示您安装Google Chrome Frame.
如果用户选择安装插件,它的效果很好.但是,如果他/她选择不安装它并关闭该层; 使用相同的按钮再次打开图层是不可能的.(基本上它只工作一次.)
有没有什么办法可以在每次点击安装时强制Google Chrome Frame打开?
(我尝试过强制cookie,但似乎没有用.)
测试页面在这里.
<!doctype html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
<![endif]-->
</head>
<body>
<a href="#" class="dngcf">Prompt</a>
<script>
$(function(){
if( $.browser.msie && $.browser.version < 9 ){
if( navigator.userAgent.indexOf('chromeframe') < 0 ){
$('.dngcf').bind('click', function(){
//document.cookie = 'disableGCFCheck=0;path=/;';
CFInstall.check({
url: 'http://www.google.com/chromeframe/eula.html?user=true',
mode: "overlay",
destination: "http://mywebsite.com"
});
});
}else{
alert('GCF is already installed');
}
}else{
alert('You need IE 6, 7 or 8 in order to see the "bug".'); …
Run Code Online (Sandbox Code Playgroud) 这是一项我应该花很多时间评估的技术吗?
http://code.google.com/chrome/chromeframe/
Chrome Frame是Internet Explorer(IE6-IE8)的一个插件,可以提供所有其他主流浏览器的功能.
Biggies对我来说是Canvas标签和快速JavaScript.
由于我做了很多JavaScript数据集可视化,IE6在我身边是一个永恒的刺,我经常不得不为它编写额外的代码,而且我经常不得不放慢用户驱动的实时可视化的帧速率.使用Google Chrome Frame可以让我为IE6用户提供更具响应性的体验.
但是我想知道IE6用户是否会遇到他们的计算机处于某种IT锁定地狱的情况,他们甚至不允许安装插件(为什么他们会使用IE6呢?)
因此,我仍然不知道如何处理IE6中的最后一个可怜的灵魂.
尽管如此,IE8缺乏Canvas并且JavaScript速度很慢,因此我的一些用户会看到性能提升,甚至可能达到Google Chrome和Safari级别.
所以,我真正的问题是:这是一项我应该花时间评估的技术吗?
注意:Google将向IE用户发出提醒,以鼓励他们下载适用于Google Wave的Google Chrome Frame.因此,谷歌可能会在IE机器上获得足够的谷歌Chrome浏览器框架,我可以检测到它并在其中使用它,并警告用户没有它可能会遭受体验.我讨厌要求我的用户.http://googlewavedev.blogspot.com/2009/09/google-wave-in-internet-explorer.html
当我尝试打印网页时,使用IE或其他浏览器时,只有框架出现在打印中.但是,通过谷歌浏览器,整个页面打印出来.
我做了一些研究,发现添加OpenFrame插件可以解决问题.但是,我正在寻找没有插件的解决方案.我们的产品被许多客户使用,我们不能要求他们安装任何插件.
我们可以通过改变CSS或脚本来解决这个问题.
如何在.NET的WebBrowser控件中使用Google Chrome Frame?我知道我必须:
<meta http-equiv="X-UA-Compatible" content="chrome=1">
Run Code Online (Sandbox Code Playgroud)
在我正在加载的页面的开头,但是如何做到这一点?
我下载了html5样板,它不会在标题中验证.
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
Run Code Online (Sandbox Code Playgroud)
我被告知我可以将此添加到.htaccess以获得相同的效果以避免验证错误.
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=Edge,chrome=1"
# mod_headers can't match by content-type, but we don't want to send this header on *everything*...
<FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|xpi|safariextz|vcf)$" >
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
Run Code Online (Sandbox Code Playgroud)
我的问题是
Google Chrome框架开发人员指南说,
以下完整示例表示IE6用户使用Google Chrome Frame,否则将"Edge"参数传递给IE的更高版本:
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=IE6">
Run Code Online (Sandbox Code Playgroud)
"将EDGE参数传递给IE的更高版本"是什么意思?
Google Chrome似乎会自动换行打开文本文件的内容.我正在从我的chrome扩展中打开一个链接,其响应是一个文本文件.当我在firefox中打开相同的链接时,它会打开,并保留所有间距和制表符空间.但是,当U打开它时,情况并非如此.它只是自动包装其所有内容.有没有办法来解决这个问题 ?
提前致谢.. :)
我正在尝试在我正在构建的网站上使用Chrome-Frame.在IE8及更低版本中,一切正常......在IE9中我收到此错误:
SCRIPT5: Access is denied.
cf-dlpage.js, line78 character 209
Run Code Online (Sandbox Code Playgroud)
不知道该怎么办!
这是触发行为的条件:
<!--[if lte IE 9]>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<style>
body {
overflow-y:hidden;
}
.chromeFrameOverlayContent {
border:none;
overflow:hidden;
}
.chromeFrameOverlayContent iframe {
border:none;
overflow:hidden;
}
.chromeFrameOverlayCloseBar {
display:none;
}
.chromeFrameOverlayUnderlay {
background-image:url(/img/bg.png);
opacity: 1;
filter: alpha(opacity = 100);
}
</style>
<script type="text/javascript">
window.onload = function() {
CFInstall.check({
url: "/fix/update.html",
mode: "overlay",
destination: "/"
});
};
</script>
<![endif]-->
Run Code Online (Sandbox Code Playgroud)
任何帮助非常感谢!
我从系统中删除了Chrome Frame,但IE8 User Agent仍然有chromeframe.如何完全删除Chrome Frame?我可以以某种方式重置所有IE8设置或是我唯一的用户代理更换器吗?
我正在使用谷歌可视化图表,这在IE8中不能很好地呈现,并且在IE6中根本不起作用.
我添加了谷歌浏览器框架,如果用户安装插件谷歌可视化工作完美无缺.
有没有办法可以强制IE用户安装GFC?现在它是可选的.我阅读了文档,似乎没有办法通过GFCInstall.check()函数调用来配置它.
这是我目前的代码:
<!--[if IE]>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
<style>
.chromeFrameInstallDefaultStyle {
border: 5px solid blue;
top:55%;
}
</style>
<script>
// The conditional ensures that this code will only execute in IE,
// Therefore we can use the IE-specific attachEvent without worry
window.attachEvent("onload", function() {
CFInstall.check({
mode: "inline"
});
});
</script>
<![endif]-->
Run Code Online (Sandbox Code Playgroud) 我正在研究chrome框架,我想知道它是如何工作的.... http://scriptsrc.net显示它是一个可以嵌入页面的JavaScript ...
http://code.google.com/chrome/chromeframe/将其显示为安装文件... JS提示安装或其他什么?
如果没有管理员权限,Chromeframe如何安装?
如果我想在C#中创建BHO,是否可以遵循相同的流程?
如果我理解正确,我需要在客户端上保存DLL,然后我还必须添加一个注册表项来将DLL注册为BHO.chrome框架在受限制的环境中如何做到这一点?