Three functions: 1. Automatic vertical centering of content 2. The default prompt text is displayed in gray 3. Click to become empty Copy code The code is as follows:<input type="text" name="wd1" id="qy_1" maxlength="100" style="color:gray;width:199px;height:30px;line-height:30px;" autocomplete="off" value="Please enter the company name" style="color:gray;" onfocus="javascript:if(this.value == 'Please enter the company name') this.value = ''; this.style.color='gray';" onblur="if(this.value == '') {this.value = 'Please enter the company name'; this.style.color = 'gray';}"> |
>>: How to query data from multiple unrelated tables and paging in Mysql
How to create a Linux virtual machine in VMware a...
BFC BFC: Block Formatting Context BFC layout rule...
1. Installation of the decompressed version (1). ...
1. Custom text selection ::selection { background...
answer from stackflow: Simply <br> is suffic...
Share a Shell script under Linux to monitor the m...
This article uses examples to illustrate the impa...
Div basic layout <div class="main"&g...
JSON data is displayed and formatted on the HTML ...
Preface When backing up the database, a full data...
Many people may ask, does the text on the website...
deepin and Ubuntu are both distributions based on...
MySQL official website: https://www.mysql.com/dow...
1 Introduction When designing a database, it is i...
First time using docker to package and deploy ima...