只需将你想设计的单词环绕[]
,然后在{}
中写出样式,如下所示
the color is [red]{style="color: red;"}
所以单词red
将是红色的.
要添加更多详细信息,
---
title: "inline style"
format: html
---
## inline style in Quarto
We can apply styles to a sentence or a word by creating spans using `[]` to surround the sentence or word that we want to style and use `{}` to define the style that we want to apply. For example,
The color of this word is [red]{style="color: red;"}. And [this line has a yellow background]{style="background-color: yellow"}.
渲染后,我们得到这个,