在我的Twitter Bootstrap 3項目中,我有一個提醒div。它有左邊的按鈕和右邊的發送按鈕。我添加右鍵發送按鈕。適用於大屏幕的各種作品。右側按鈕位於右側。 Twitter Bootstrap 3右拉掛在小窗口
但在小窗口中,按鈕會掛在警告div的右側,但會溢出div。我怎樣才能擴展提醒div,讓右邊的按鈕將在div內?還是適合這種情況的其他解決方案?
http://jsfiddle.net/mavent/aaVMt/4/
<div class="alert alert-success" id="ab1">
<div id="ac1">
<div class="btn-group">
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown">
Text <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" onclick="">Text 1</a></li>
<li><a href="#" onclick="">Text 2</a></li>
</ul>
</div>
<div style="display:inline-block;">
<div id="a1">
<p>Some text some text this is my elegant text hello world this text is cool 1</p>
</div>
</div>
<button class="btn btn-primary pull-right" id="aaa">
Send
</button>
</div>
</div>
謝謝。但是該解決方案修復了無左右兩側的左右按鈕。右鍵粘到右側。 – trante
當然,爲每個按鈕添加邊距 - 右邊:10px和邊距 - 左邊:10px是一種附加解決方案。 – trante
您正在編寫.. .row具有負邊距。我不明白爲什麼......另一種解決方案是取消邊距或執行此操作:http://jsfiddle.net/aaVMt/6/ –