【发布时间】:2019-05-12 00:46:24
【问题描述】:
我想在 Ant Design 中更改 Select 组件的占位符颜色。
我已经在下面尝试了这些,但它们都不起作用。
.ant-select-selection {
:placeholder-shown {
color: red !important;
}
&:placeholder-shown {
color: red !important;
}
:::placeholder {
color: red !important;
}
color: black !important;
&::-webkit-input-placeholder {
color: blue !important;
}
&:placeholder {
color: blue !important;
}
:placeholder {
color: blue !important;
}
::-webkit-input-placeholder {
color: blue !important;
}
}
::-webkit-input-placeholder {
color: blue !important;
}
【问题讨论】:
标签: antd