[英]How to change title banner size in Quarto?
我有以下帶有 quarto html 選項title-block-banner: true
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)
```
:::
您可以通過修改默認樣式來做到這一點:
Qmd 文件:
---
title: "Cars"
title-block-banner: true
format:
html:
code-fold: true
page-layout: full
fig_caption: yes
---
<style>
#title-block-header {
margin-block-end: 1rem;
position: relative;
margin-top: -1px;
height: 75px;
}
.quarto-title-banner {
margin-block-end: 1rem;
position: relative;
margin-top: -30px;
height: 85%;
}
</style>
::: panel-tabset
## MTCars
```{r}
head(mtcars)
```
## Cars
```{r}
head(cars)
```
:::
Output:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.