Change an HTML5 input's placeholder color with CSS

后端 未结 30 3075
猫巷女王i
猫巷女王i 2020-11-21 04:36

Chrome supports the placeholder attribute on input[type=text] elements (others probably do too).

But the following CSS doesn\'t do anything

30条回答
  •  被撕碎了的回忆
    2020-11-21 05:06

    Now we have a standard way to apply CSS to an input's placeholder : ::placeholder pseudo-element from this CSS Module Level 4 Draft.

提交回复
热议问题