更改四开演示文稿中 HTML 表格的大小

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

我想在

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    |

输出:

正如你所看到的,桌子很大。所以我想知道是否有一个选项可以通过控制表格的输出大小来使各自的距离保持不变?

reveal.js quarto
1个回答
3
投票

可能是通过减小表格的字体大小,

---
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    |

© www.soinside.com 2019 - 2024. All rights reserved.