使用引導程序,將多個按鈕附加到.form-search
可以將兩個附加按鈕的右角四捨五入。將多個按鈕添加到引導程序搜索表格
HTML:
<form class="form-search">
<div class="input-append">
<input type="text" class="span2 search-query">
<button type="submit" class="btn">Quick</button>
<button type="submit" class="btn">Full</button>
</div>
</form>
見http://jsfiddle.net/jhfrench/aFYcM/3/
我怎樣才能調整CSS,以便只有最後一個按鈕獲取圓角和中間鍵是「方」?
只爲背景,我可以追加多個按鈕的輸入,只有最右邊的按鈕,得到圓角:
<div class="alert alert-success">
Regular input can append two buttons such that the middle button ("Quick") does not have rounded corners:<br />
<form>
<div class="input-append">
<input type="text" class="span2">
<button type="submit" class="btn">Quick</button>
<a href="somewhere.html" class="btn">Full</a>
</div>
</form>
</div>
見http://jsfiddle.net/jhfrench/aFYcM/4/