且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 css 文件更改 ioslides rmarkdown 中项目符号的文本颜色

更新时间:2023-01-01 08:03:03

你们真的很亲近.您需要更改 ul 属性(无序列表).

You are so very close. You need to change the ul properties (unordered list).

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.