gpt4 book ai didi

html - 搜索框内的搜索图标

转载 作者:太空狗 更新时间:2023-10-29 16:07:28 24 4
gpt4 key购买 nike

所以我现在拥有的是:

SAMPLE

但我想包括图标搜索 ICON SEARCH在左侧的文本框内。

这是我的代码:

<form class="navbar-form pull-left form-search">
<select>
<option>Search patient by...</option>
<option name="fname">Firstname</option>
<option name="fname">Lastname</option>
<option name="fname">Last follow up</option>
</select>
<div class="input-append">
<input data-provide="typeahead" data-items="4" type="text"
class="span2 search-query">
<button class="btn">Search</button>
</div>
</form>

那么有什么想法可以实现吗?谢谢。

最佳答案

<input data-provide="typeahead" data-items="4"  type="text" class="search-query">

.search-query{
background: url(../images/your_pic.format) no-repeat left ;
}

只需添加该图像作为背景,左对齐,不重复

关于html - 搜索框内的搜索图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17670865/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com