您的位置:首页 > Web前端 > BootStrap

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息