在文本框中显示图像 [英] displaying image in text box
本文介绍了在文本框中显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在你的css中创建一个如下所示的样式
.tbl1 {
background:#FFFFFF url(images / search.png)no-repeat 4px 4px;
padding:4px 4px 4px 22px;
height:18px;
}
并将该类用于文本框
< input type =textname =smapleclass =tbl1>
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">
这篇关于在文本框中显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文