【发布时间】:2021-11-10 14:54:58
【问题描述】:
我已经使用streamlit 有一段时间了,但仍然不知道如何更改multiselect 标记的背景颜色。有什么办法可以解决这个属性吗?
我尝试过检查元素,但没有发现任何可改进的地方。
/* change the select box properties */
div[data-baseweb="select"]>div {
background-color:#fff;
border-color:rgb(194, 189, 189);
width: 50%;
}
/* change the tag font properties */
span[data-baseweb="tag"]>span {
color: black;
font-size: 17px;
/* background-color:#fff; */ /* only turns part of the tag white */
}
【问题讨论】: