How to set placeholder value using CSS?

后端 未结 9 1288
天涯浪人
天涯浪人 2020-12-16 09:00

I want to set the placeholder value of an input box using only css and not JavaScript or jQuery. How can I do this?

9条回答
  •  离开以前
    2020-12-16 09:45

    Change your meta tag to the one below and use placeholder attribute inside your HTML input tag.

    
    

提交回复
热议问题