开发者

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">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜