【发布时间】:2014-03-05 09:56:51
【问题描述】:
我想知道如何在标签的范围内嵌入整个reveal.js 演示文稿,以便我的演示文稿看起来像slideshare.net 上的演示文稿
提前致谢。
【问题讨论】:
-
你能做到吗?我正在尝试做同样的事情,如果可以,请告诉我你是怎么做到的?
标签: reveal.js
我想知道如何在标签的范围内嵌入整个reveal.js 演示文稿,以便我的演示文稿看起来像slideshare.net 上的演示文稿
提前致谢。
【问题讨论】:
标签: reveal.js
你不能用 div 做到这一点。您所描述的内容听起来与 iframe 的用途完全一样。
<iframe width="400" height="400" marginheight="0" marginwidth="0" src="/your/reveal/slideshow.html">
Fallback text here for unsupporting browsers, of which there are scant few.
</iframe>
我自己没有尝试过这样做,但这是使用正确的工具。试着用它来做点什么,你应该让它做你想做的事。
其他资源: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe
【讨论】:
我能够使用 Crell 建议的 iframe 在我的独立 Wordpress 网站上的帖子中嵌入一个 deck.js 幻灯片。 iframe 的 html 内容来自 GitHub 存储库。
这是代码(使用 Wordpress 中的文本 [非可视] 编辑器输入):
**
<iframe src="https://russmcduff.github.io/festschrift/ignite/deck.js-latest/scott.html" title="deck.js in WP post" width="600" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
**
这是结果帖子:
Example of deck.js slides autoplaying within a Wordpress post
也许同样的方法适用于reveal.js 幻灯片?
【讨论】: