-1
我一直在試圖找到一個輸入框,使用引導選擇下拉菜單。我發現,你可以使用http://v4-alpha.getbootstrap.com/components/input-group/使用Twitter的下拉選擇選項的輸入文本框引導
<div class="input-group">
<input type="text" class="form-control" aria-label="Text input with dropdown button">
<div class="input-group-btn">
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Action
</button>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
<div role="separator" class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Separated link</a>
</div>
</div>
</div>
這工作,但不是我想要實現達到同樣的目光。 eBay正是我正在尋找的東西,但沒有什麼是我可以找到的http://bulksell.ebay.com/ws/eBayISAPI.dll?ListingTemplate&mode=AddItem
它只是一個帶有向右拉的箭頭的文本框,並有一個下拉列表。它沒有像上面代碼中所示的輸入插件或分隔符。
這怎麼能用bootstrap來完成?
您的鏈接需要登錄才能看到,但我相信您要查找的內容可能是預先輸入或select2。檢查https://twitter.github.io/typeahead.js/examples/和https://select2.github.io/examples.html – ruedamanuel