Fancybox iframe 是空白的 [英] Fancybox iframe is blank
问题描述
所以我已经下载了fancybox zip 并将其添加到我的网站.当我进入演示区时,除 iframe 外,一切正常.无论如何,我还没有编辑过代码.它在他们的网站上完美运行,所以我不确定为什么我的网站会有所不同.我已经搜索过这个网站和其他网站,但一无所获.同样,我没有编辑任何代码,我只是将其解压缩并将其推送到我的服务器.有任何想法吗?在这里查看
so i have downloaded the fancybox zip and added it to my site. when i go to the demos area, everything is working fine with the exception of the iframe. i havent edited the code in anyway. it works perfectly on their site, so im not sure why it would be any different on mine. i have searched through this site and others and have came up with nothing. again i have not edited any of the code, i simply unzipped it and pushed it to my server. any ideas? View Here
推荐答案
这不是一个花哨的问题.
This is not a fancybox issue.
fancybox 下载中包含的演示文件,针对 iframe
示例的 jQuery 站点......但今天大多数主要站点都像 googleem>、yahoo 和其他等(现在也是 jQuery)不允许自己包含在 iframe 中.我猜演示文件已经过时了.
The demo file included in the fancybox download, targets the jQuery site for the iframe
sample .... but today most mayor sites like google, yahoo, and others etc. (and now jQuery too) don't allow themselves to be contained within iframes. I guess the demo file is outdated.
如果您可以将任何网站放置在常规 html
iframe
(例如您自己的或您创建的任何其他网站)中,那么您也可以使用fancybox 打开它.检查此演示并亲自查看 ...注意什么 iframe 是空白的".
If you can place any web site within a regular html
iframe
(like your own or any other you create for instance), then you can open it with fancybox too. Check this demo and see it for yourself ... notice what iframes are "blank".
您也可以查看此线程以供参考.
这篇关于Fancybox iframe 是空白的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!