我有以下带有 2 个选项卡的 qmd 文件。我想更改选项卡文本字体样式和大小。我该怎么办?
---
title: "Cars"
title-block-banner: true
format:
html:
code-fold: true
page-layout: full
fig_caption: yes
---
::: panel-tabset
## MTCars
```{r}
head(mtcars)
```
## Cars
```{r}
head(cars)
```
:::
您可以使用 css 更改选项卡文本字体样式。
---
title: "Cars"
title-block-banner: true
format:
html:
code-fold: true
page-layout: full
fig_caption: yes
---
```{css, echo=FALSE}
.panel-tabset .nav-item {
font-size: 30px;
font-style: italic
}
```
::: panel-tabset
## MTCars
```{r}
head(mtcars)
```
## Cars
```{r}
head(cars)
```
:::
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)