按钮组溢出小视口

时间:2015-09-15 10:07:21

标签: twitter-bootstrap button buttongroup

我想在<td>元素中创建一个组按钮,在小屏幕和大屏幕上的行为相同。

这就是我现在所拥有的。

<div class="btn-group" role="group">
    <button type="button" class="edit btn btn-warning btn-sm">
        <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
    </button>
    <button type="button" class="delete btn btn-danger btn-sm">
    <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
    </button>
</div>

这是一个截图来解释我的意思。

enter image description here

2 个答案:

答案 0 :(得分:1)

在小屏幕媒体查询上将最小宽度应用于btn-group课程

答案 1 :(得分:1)

您需要将最小宽度应用于btn-group或使用Bootstrap的内置类之一,例如sm-col-1