我在元素中使用 ionic-selectable
,我想更改元素的颜色。
我把下面的 css 作为文档中提到的:
.ionic-selectable-item-is-selected,.ionic-selectable-item-is-disabled
{
color:red !important;
}
但什么也没发生,这是结果的图片: enter image description here
请问如何给元素上色?
最佳答案
在这里你的代码运行良好......但你可以尝试更具体的代码。
.ionic-selectable-item-is-selected,.ionic-selectable-item-is-disabled
{
.label {
color:red;
}
}
关于css - 如何为 ionic 可选择的元素添加颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59767773/