我想在
Quarto
演示文稿中使用 HTML 表格。问题是它们在幻灯片上相当大。这是一些可重现的代码:
---
title: "Change size of HTML table in Quarto"
format: revealjs
---
## Example slide
| Default | Left | Right | Center |
|---------|------|-------|--------|
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |
输出:
正如你所看到的,桌子很大。所以我想知道是否有一个选项可以通过控制表格的输出大小来使各自的距离保持不变?
可能是通过减小表格的字体大小,
---
title: "Change size of HTML table in Quarto"
format: revealjs
engine: knitr
---
## Example slide
```{css}
#| echo: false
.reveal table {
font-size: smaller;
}
```
| Default | Left | Right | Center |
|---------|------|-------|--------|
| 12 | 12 | 12 | 12 |
| 123 | 123 | 123 | 123 |
| 1 | 1 | 1 | 1 |