bootstrap两端对齐排列的按钮组
2017-05-10 11:07
686 查看
让一组按钮拉长为相同的尺寸,填满父元素的宽度。对于按钮组中的按钮式下拉菜单也同样适用。
效果图:
代码:
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Left</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Middle</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Right</button>
</div>
</div>
效果图:
代码:
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Left</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Middle</button>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-default">Right</button>
</div>
</div>
相关文章推荐
- Bootstrap按钮组嵌套、垂直排列、两端对齐
- BootStrap 表单控件之单选按钮水平排列
- 模拟公交站台竖直排列,两端对齐
- Bootstrap两端对齐的导航实例
- PPT中两端对齐的按钮
- bootstrap分割的按钮下拉菜单,按钮和下拉菜单不对齐问题
- bootstrap 两端对齐的导航
- bootstrap-表单控件——单选按钮水平排列
- Bootstrap3基础 btn-group/-vertical 按钮组(横着、竖着排列)
- Bootstrap下拉菜单(Dropdowns)和按钮
- Bootstrap表单按钮图标
- bootstrap-按钮的向下向上三角形-向上弹起的下拉菜单
- iOS基础 - 让按钮文本左对齐
- css3实现两端对齐
- Bootstrap 按钮状态
- [CSS]Input标签与图片按钮对齐
- 如何调整UIButton里面的文字位置以及按钮文字右对齐
- Bootstrap<基础十三> 按钮组
- bootstrap实现自定义按钮导出Excel表格
- 两端对齐