幻灯片可见性
¥Slide Visibility
data-visibility
属性可用于隐藏幻灯片。它还可用于在 reveal.js 的内部编号系统中将幻灯片标记为 "uncounted",这会影响可见的幻灯片编号和进度条。
¥The data-visibility
attribute can be used to hide slides. It can also be used to mark slides as "uncounted" in reveal.js' internal numbering system, which affects the visible slide number and progress bar.
隐藏幻灯片 4.1.0
¥Hidden Slides 4.1.0
要隐藏幻灯片,请添加 data-visibility="hidden"
。一旦 reveal.js 初始化,隐藏的幻灯片就会从 DOM 中删除。
¥To hide a slide from view, add data-visibility="hidden"
. Hidden slides are removed from the DOM as soon as reveal.js is initialized.
<section>Slide 1</section>
<section data-visibility="hidden">Slide 2</section>
<section>Slide 3</section>
未计数的幻灯片
¥Uncounted Slides
准备演示文稿时,准备一些你可能有时间或没有时间展示的可选幻灯片有时会很有帮助。这可以通过在演示文稿末尾附加几张幻灯片轻松实现,但这意味着 reveal.js 的进度条和幻灯片编号会提示你还有剩余幻灯片。
¥When preparing a presentation it can sometimes be helpful to prepare optional slides that you may or may not have time to show. This is easily done by appending a few slides at the end of the presentation, however this means that the reveal.js progress bar and slide numbering will hint that there are additional slides.
要使用 reveal.js 编号系统对幻灯片进行 "hide" 处理,你可以使用 data-visibility="uncounted"
。
¥To "hide" those slides from reveal.js' numbering system you can use data-visibility="uncounted"
.
注意:此功能仅适用于演示文稿末尾的幻灯片,即所有主幻灯片之后的幻灯片。
¥Note: This only works for slides at the end of the presentation, after all of your main slides.
<section>Slide 1</section>
<section>Slide 2</section>
<section data-visibility="uncounted">Slide 3</section>