在移动设备上进行多项选择

时间:2018-10-15 13:28:50

标签: html css bootstrap-4

我不知道这是问题还是正常现象。我使用引导程序进行了多次选择。控制台中的移动版本正确显示了信息(screen1),但是在实际设备中,我只有0个项目,而当我选择一个项目时,它显示了1个项目...(screen2)。有人可以帮我做与第一个屏幕相同的操作吗?

Screen1

Screen2

1 个答案:

答案 0 :(得分:0)

以下是可以解决您问题的示例。您需要将Multiple属性添加到<select>元素中。

Bootstrap form documentations

<select multiple class="form-control" id="selectList"> 
<option>Your option 1</option> 
<option>Your option 2</option> 
<option>Your option 3</option> 
<option>Your option 4</option> 
</select>