【问题标题】:ant design change select background color when disabled蚂蚁设计更改禁用时选择背景颜色
【发布时间】:2021-11-12 19:18:56
【问题描述】:

我正在尝试更改禁用时选择下拉菜单的背景颜色。

我正在测试:.ant-select-disabled .ant-select-selection{background-color: red},但没有运气。 例如,在常规输入上我让它工作:.ant-input:disabled{background-color: red}

这是为 VueJS 准备的

【问题讨论】:

  • 选择器是正确的。试试 !important,可能你有覆盖的样式。
  • 很遗憾没有工作

标签: antd ant-design-pro antdv ant-design-vue


【解决方案1】:

您好,您可以在“选择”下拉菜单中使用样式

<Select
   style={
     backgroundColor: "red",
   }
>
        .....
              
</Select>

【讨论】:

    猜你喜欢
    • 2020-12-27
    • 2020-10-17
    • 2021-06-07
    • 1970-01-01
    • 1970-01-01
    • 2018-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多