我担心我面临与以前的海报相同的挑战:
Embedding a Google Group - nothing is displayed when not logged into Google
和 How to embed google groups to a web page
第一个解决了,第二个没有解决。
想将 google-group 论坛嵌入到 html 页面中。按照 Google Groups 使用 iframe
提供的指导,我无法做到这一点:
<iframe id="forum_embed"
src="javascript:void(0)"
scrolling="no"
frameborder="0"
width="900"
height="700">
</iframe>
<script type="text/javascript">
document.getElementById('forum_embed').src =
'https://groups.google.com/forum/embed/?place=forum/test-distance'
+ '&showsearch=true&showpopout=true&showtabs=false'
+ '&parenturl=' + encodeURIComponent(window.location.href);
</script>
并由 http://www.jqcoolgallery.com/support.html 成功展示。我可以查看这个嵌入式论坛,但是在我的 html 中应用相同的语法时,我没有成功。
在 Firefox 27 或 Internet Explorer 11 中查看时,我同样缺乏成功。
你的例子对我来说很好, see this jsfiddle
完整的示例代码如下
截图: