Change an HTML5 input's placeholder color with CSS

后端 未结 30 3187
猫巷女王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 04:45

    I have tried every combination here to change the color, on my mobile platform, and eventually it was:

    -webkit-text-fill-color: red;
    

    which did the trick.

提交回复
热议问题