如何设置Input组件的placeholder颜色 #48472
Answered
by
kiner-tang
mingxin-yang
asked this question in
Q&A
-
如题 |
Beta Was this translation helpful? Give feedback.
Answered by
kiner-tang
Apr 17, 2024
Replies: 1 comment
-
你这个问题实际上并不是 antd 的问题,而是原生 input 的问题,可以给 input 组件绑定 class 后设置 https://stackblitz.com/edit/react-jmnjtp?file=demo.tsx,index.css |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
afc163
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你这个问题实际上并不是 antd 的问题,而是原生 input 的问题,可以给 input 组件绑定 class 后设置
::placeholder
伪类设置样式:https://stackblitz.com/edit/react-jmnjtp?file=demo.tsx,index.css