Github gist页面不会加载iframe [英] Github gist page won't load in iframe

查看:168
本文介绍了Github gist页面不会加载iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在单页上列出所有要点,并且iframe看起来是最快最简单的解决方案,问题在于它无法加载。我的示例显示了用于使gist.github.com和google.com在iframe中显示的相同html。 Google会加载,但github不会。

这是Github强加的一个限制,是否有更好的方法可以列出所有要点,而无需单独添加每个要点?我希望它在我创建一个新的时自动显示。



http://jsfiddle.net/guanome/VGEjB/1/

解决方案

考虑GitHub不会让你用框架显示它的内容,lime在他的回答中提到(+1 btw),你可以考虑使用 GitHub Api for Git



通过这种方式,您可以构建自己的内容。


I want to list all my gists on a single page and an iframe seemed like the quickest and easiest solution, the problem is that it won't load. My example show the same html used to make gist.github.com and google.com show in an iframe. Google will load but github won't.

Is this a limitation that Github imposes, is there a better way to list embed all my gists on a single page without adding each gist individually? I want it to show up automatically when I create a new one.

http://jsfiddle.net/guanome/VGEjB/1/

解决方案

Considering GitHub won't let you display its content with a frame, lime Rob mention in his answer (+1 btw), you could consider using the GitHub Api for Git.

That way, you build your own content.

这篇关于Github gist页面不会加载iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆