简体   繁体   中英

How to format tabset font in Quarto?

I have the below qmd file with 2 tabs. I'd like to change the tab text font style and size. How do I go about this?

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

```
:::

you can change the tab text font style by using 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)

```
:::

带有样式标签文本的标签集


The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM