Ich möchte Suchleiste ähnlich Amazon Website erstellen.bootstrap Eingabegruppe Wählen Sie Feld, Textfeld und Suchfeld
Ein Auswahlfeld gefolgt von einem Eingabefeld gefolgt von der Suchschaltfläche.
Das Problem ist, dass das button1 Dropdown kein Auswahleingabefeld ist, wenn ich zu Eingabefeld alles Pausen ändern sich.
Beispiele in Bootstrap-Seite nicht Gruppe mit Eingabefeld anzeigen aber Dropdown-Menü anzeigen.
meinen Code
<div class="input-group input-group-lg">
<input type="text" name="query" class="form-control" placeholder="Search this site" />
<span class="input-group-btn">
<button type="button" class="btn btn-primary dropdown-toggle custom" data-toggle="dropdown">Button 1 <span class="caret"></span></button>
<ul class="dropdown-menu pull-right">
<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 btn-primary" type="submit">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
CSS - Kurvenradius für Mitte Eingabefeld oder Tasten
.custom{
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
}
Mögliche Duplikat [Bootstrap-Eingangsgruppe mit Text auswählen und Taste] (https: // Stackoverflow. com/questions/29511300/bootstrap-input-group-mit-text-wählen-und-taste) –