如何在四开本中向 RevealJS 幻灯片添加多个类

问题描述 投票:0回答:1

我可以通过将 {.scrollable} 添加到幻灯片标题并更新 YAML 来启用幻灯片滚动

---
format: 
    revealjs:
        scrollable: true
---

## Inferences from Posterior for Treatment Effect {.scrollable}

I am unclear on how to add multiple classes for scrolling and no stretch. 
The following fail:
## Inferences from Posterior for Treatment Effect {.scrollable, .nostretch}
## Inferences from Posterior for Treatment Effect {.scrollable} {.nostretch}

我添加了滚动图像以供参考

quarto reveal.js
1个回答
0
投票

您可以添加多个类,只需将它们一个接一个地排列即可,即

## Inferences from Posterior for Treatment Effect {.scrollable .nostretch}
© www.soinside.com 2019 - 2024. All rights reserved.