CSS Input field text color of inputted text

后端 未结 5 1736
渐次进展
渐次进展 2020-12-13 17:08

I have an input field, and the color of the text in it is black. (I\'m using jquery.placeholder) Let\'s say the text in there is \"E-Mail\"

When you click on this fi

5条回答
  •  渐次进展
    2020-12-13 17:52

    If you want the placeholder text to be red you need to target it specifically in CSS.

    Write:

    input::placeholder{
      color: #f00;
    }
    

提交回复
热议问题