[英]How to place search icon to the left of the input box
尝试这样的事情:
<p><i class="classofthex" onclick="document.GetelementById('in1').innerText = ''; " ></i><input id="in1" type="text" placeholder="please write something to see"></p>
你可以在 bootstrap 中找到 x 图标
通过这个链接
从以下内容应该很清楚:您在以下方面使用了两个 css 属性:
input[type=text]{
background-image: url('/url')
backgroung-repeat: no-repeat
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.