shm*_*zan 7 css frontend twitter-bootstrap twitter-bootstrap-3 twitter-bootstrap-2
当空间较小时,如何防止自举按钮进入2线?
我想使用下面的Bootstrap代码:
<div class="btn-group" style=" width:100px ;">
<button type="button" class="btn btn-default" style=" width:30px;">-</button>
<input type="text" class="form-control" style="width:30px;">
<button type="button" class="btn btn-default" style=" width:30px;"> +</button>
</div>
Run Code Online (Sandbox Code Playgroud)
它看起来像:

bet*_*ets 14
这对我有用,将按钮组转换为弹性项目(默认情况下它不会换行):
.btn-group {
display: flex;
}
Run Code Online (Sandbox Code Playgroud)
我在这里看到了这个,还有更多选项:https: //github.com/twbs/bootstrap/issues/9939
| 归档时间: |
|
| 查看次数: |
3669 次 |
| 最近记录: |