如何在bootstrap select中执行两列操作

时间:2018-04-02 22:05:25

标签: html twitter-bootstrap bootstrap-4

我想在bootstrap选择中使用两列。喜欢这个

illustrated image

我该怎么办?

1 个答案:

答案 0 :(得分:-1)

<div class="row">
<div class="form-group">
<label class="col-xs-6">option1</label>
<label class="col-xs-6">option2</label>
</div>
</div>

这会将手机等小型设备设为2列 取决于设备的大小,根据大小屏幕将“xs”更改为“sm”或“md”或“lg”