在我的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/ –