Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the automatic vertical centering of input text box content in html and the default prompt text click is empty

Shulou Source: shulou.com Published: 2022-06-03 15:04:12 11月14日 Update

This article is about how to achieve the automatic vertical center of input text box content in html and the default prompt text click is empty. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

This effect has three functions:

1. The content is automatically centered vertically

2. The default prompt text is grayed out

3. It becomes empty after clicking

Thank you for reading! On the "html how to achieve input text box content automatically vertical center and the default prompt text click is empty" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Tags: Content text hint text more article good practical three function effect article gray see knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia OPPO Reno Shulou Technology MariaDB