i have a textbox for search. how to display image in textbox..eg: searchbox available on most of the websites with search image inside it
You can use css to do this
Create a style like below in your css
.tbl1 {
background:#FFFFFF url(images/search.png) no-repeat 4px 4px;
padding:4px 4px 4px 22px;
height:18px;
}
and use that class to the text box
<input type="text" name="smaple" class="tbl1">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.