獲取以下rmarkdown檔案。我想讓每個都blockquote使用不同的背景顏色(第一個為黃色,第二個為白色),但第二個css塊似乎中和了第一個。
有人可以幫助我嗎?
---
title: "Untitled"
output: html_document
---
```{css echo = FALSE}
blockquote{
background-color: rgb(255,255,153);
}
```
> this is a note 1
>
> the is is still the note
```{css echo = FALSE}
blockquote{
background-color: initial;
}
```
> this is a note 2
>
> the is is still the note
uj5u.com熱心網友回復:
試試這個解決方案:
<div style="background-color:rgba(250, 230, 7, 1);">
> this is a note 1
>
> the is is still the note
</div>
<div style="background-color:rgba(63, 237, 40, 1);">
> this is a note 2
>
> the is is still the note
</div>

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/375056.html
上一篇:使用flexbox創建回應式布局
