Bootstrap 3按钮垂直对齐没有空间

时间:2014-01-22 14:52:36

标签: button twitter-bootstrap-3 vertical-alignment

如何垂直对齐Bootstrap 3中的按钮,没有像这样的空格

(button 1)
(button 2)
(button 3)

2 个答案:

答案 0 :(得分:1)

您应该使用文档中的Vertical variation示例:

<div class="btn-group-vertical">
 ...
</div>

答案 1 :(得分:-1)

看起来你想要它们HORIZONTAL。您所看到的空间是因为默认情况下它们是display: inline-blockinline-block为您提供元素之间的3像素水平空间。您可能想要display: block,然后浮动按钮。