【发布时间】:2014-07-15 09:10:58
【问题描述】:
我有一个 Bootstrap 面板,页脚中有两个按钮:
<div class="panel-footer">
{{ Form::open( array('route' => array('dogs.edit', $dog->id), 'method' => 'get', "class" => 'col-lg-6 ')) }}
{{ Form::submit("Edit", array('class' => 'btn btn-default')) }}
{{ Form::close() }}
{{ Form::open( array('route' => array('dogs.destroy', $dog->id), 'method' => 'delete', "class" => 'col-lg-6 ')) }}
{{ Form::submit("Delete", array('class' => 'btn btn-default')) }}
{{ Form::close() }}
</div>
每个按钮的表单都有pull-left 和pull-right 类,因此它们每个都浮动到面板页脚的任一侧。
浮动正在工作,但按钮现在位于页脚之外:
我尝试使用网格系统而不是拉取助手,但最终得到了相同的结果。
我还四处寻找解决方案(我认为这一定很常见),但没有找到不需要使用自定义 css 覆盖 Bootstrap 的解释。
是否可以仅使用 Bootstrap 来解决此问题,还是需要我自己的 css 来解决它?
【问题讨论】:
标签: html css twitter-bootstrap