开发者

displaying image in text box

开发者 https://www.devze.com 2023-02-20 18:33 出处:网络
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 itYou can use css to do this

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

精彩评论

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