---
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"}.
1条答案
按热度按时间vnjpjtjt1#
只需用
[]
将您要设置样式的单词包围起来,并在{}
中编写样式,如下所示因此字
red
将为红色。要添加更多详细信息,
渲染之后,我们得到这个,