[英]How I change the text color of bullets in ioslides rmarkdown with a css file
I am trying to change the color of the text in bullets in ioslides rmarkdown using a css file. 我正在尝试使用css文件更改ioslides rmarkdown中项目符号中文本的颜色。 I tried using p but there I couldn't. 我尝试使用p,但是无法。
p {
display: block;
font-size: 30px;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
font-weight: bold;
color: red;
}
You are so very close. 你好亲近 You need to change the ul
properties (unordered list). 您需要更改ul
属性(无序列表)。
ul {
display: block;
font-size: 30px;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
font-weight: bold;
color: red;
}
Note that this will change the color of the bullet and the font. 请注意,这将更改项目符号和字体的颜色。 I've searched for a way to color the bullet separately, but it appears the default behavior is to color the bullet the same as the font. 我一直在寻找一种单独为项目符号着色的方法,但看来默认行为是为项目符号与字体着色。 To override this doesn't seem straight-forward. 覆盖它似乎并不简单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.