怎样在input文本框里面显示小图片,代码怎么写啊?
来源:百度知道 编辑:UC知道 时间:2024/09/23 19:48:45
很简单,给input框加个背景就行。
定义css样式:background-image: url(图片地址);
举个列子:
<input type="text" name="test" style="background-image: url(https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/iknow/icn_point.gif);background-repeat: no-repeat;" />
有问题留言