无法在fancybox的iframe中加载Google [英] Unable to load google in iframe in fancybox
本文介绍了无法在fancybox的iframe中加载Google的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的iframe在我的内部页面上正常运行,但是当我将源网址设置为Google时失败了.
My iframe works fine with my internal pages however it fails when I set the source url to Google.
这是我的代码,我正在使用版本2(最新版本)
Here is my code, i'm using version 2 (latest)
<script language="javascript" type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/fancybox/jquery.fancybox.pack.js"></script>
<link rel="stylesheet" type="text/css" href="../js/fancybox/jquery.fancybox.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$(".various").fancybox({
maxWidth : 800,
maxHeight : 600,
fitToView : false,
width : '70%',
height : '70%',
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
});
</script>
<a href="http://www.google.com/search?q=android" class="various fancybox.iframe">Open iframe</a>
推荐答案
这不是fancybox的问题.由于adSense计划政策的变化,Google不希望再将其包含在iframe中.
It is not a fancybox issue. Google doesn't like to be contained within iframes anymore due to changes in their adSense program policies.