如何使用 css 文件更改 ioslides rmarkdown 中项目符号的文本颜色 [英] How I change the text color of bullets in ioslides rmarkdown with a css file

查看:71
本文介绍了如何使用 css 文件更改 ioslides rmarkdown 中项目符号的文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 css 文件更改 ioslides rmarkdown 中项目符号中文本的颜色.我尝试使用 p 但我不能.

I am trying to change the color of the text in bullets in ioslides rmarkdown using a css file. I tried using p but there I couldn't.

p { 
display: block;
font-size: 30px;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
font-weight: bold;
color: red;
}

推荐答案

你们真的很亲近.您需要更改 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.

这篇关于如何使用 css 文件更改 ioslides rmarkdown 中项目符号的文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆