【发布时间】:2020-07-27 07:22:59
【问题描述】:
我正在尝试以 readthedown RMD 格式更改标题面板的背景颜色。
---
title: "R Notebook"
output: rmdformats::readthedown
css: Style.css
---
我的样式 CSS 将颜色更改为 #008B8B
#main .nav-pills > li.active > a,
#main .nav-pills > li.active > a:hover,
#main .nav-pills > li.active > a:focus {
background-color: #22983B;
}
#main .nav-pills > li > a:hover {
background-color: #008B8B;
}
h1,h2,h3,h4,h5,h6,legend{
color: #008B8B;
}
#nav-top span.glyphicon {
color: #008B8B;
}
#table-of-contents header{
color:#008B8B;
background-color: #008B8B;
}
#table-of-contents h2{
background-color:#22983B;
}
a:hover{
color:#008B8B
}
a:visited{
color:#008B8B
}
但我仍然得到:
我想改变: toc left 的背景颜色,TOC header 的背景颜色(现在为红色)和 Title 1 和 2 的悬停颜色。CSS 中的标签是什么?
【问题讨论】:
标签: css r-markdown