在div中嵌入整个reveal.js演示文稿

时间:2014-03-05 09:56:51

标签: reveal.js

我想知道如何在标签的范围内嵌入整个reveal.js演示文稿,以便我的演示文稿看起来像slideshare.net上的演示文稿

提前致谢。

2 个答案:

答案 0 :(得分:6)

你不能用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

答案 1 :(得分:2)

我能够在我的独立Wordpress网站上的帖子中嵌入deck.js幻灯片,使用iframe作为Crell建议。 iframe的html内容是从GitHub存储库提供的。

这里是代码(使用Wordpress中的Text [not Visual]编辑器输入):

**
<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幻灯片?