You can use the attribute in HTML5 <input="text" placeholder="what you want to enter" > You can also use js to add css style Copy code The code is as follows:<style type="text/css"> .in_search { border:1 none; color:#999999; float:left; font-size:14px; height:18px; line-height:18px; margin:3px 2px; width:253px; } </style> <input name="q" class="in_search" onfocus="if(this.value=='Please enter what you want to enter'){this.value='';}" onblur="if(this.value==''){this.value='Please enter what you want to enter';}" type="text" value="Please enter what you want to enter"/> |
<<: JavaScript implements the detailed process of stack structure
>>: An example of vertical centering of sub-elements in div using Flex layout
Regardless of which version of Ubuntu, installing...
Table of contents Pygame functions used Creating ...
Table of contents 1. Installation 2. Import 3. De...
Since HTML email is not an independent HOST page o...
Table of contents Query Background 1. Like query ...
Problem background: There is a requirement to tak...
MySQL multi-table query (Cartesian product princi...
Aggregating data from various sources allows the ...
In a recent project, I needed to implement the fu...
A static node is fixed on a machine and is starte...
I have nothing to do recently, so I tinker with C...
This article shares the specific code of Javascri...
the term: 1. VM: Virtual Machine step: 1. Downloa...
This axios package is used in the vue3 demo. For ...
Background Threads •Master Thread The core backgr...