displaying image in text box
i have a textbox for search. how to display image in textbox..eg: searchbox available on most of开发者_Python百科 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">
精彩评论