有谁知道如何执行以下操作但将搜索按钮作为下拉菜单?
<div class="input-append">
<input class="span2" id="appendedInputButtons" type="text">
<button class="btn" type="button">Search</button>
<button class="btn" type="button">Options</button>
</div>
有谁知道如何执行以下操作但将搜索按钮作为下拉菜单?
<div class="input-append">
<input class="span2" id="appendedInputButtons" type="text">
<button class="btn" type="button">Search</button>
<button class="btn" type="button">Options</button>
</div>
试试这个它会为你工作......
<div class="input-append">
<input type="text">
<div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1">
Search
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
<button class="btn" tabindex="-1">Options</button>
</div>
</div>