【发布时间】:2019-09-03 10:10:58
【问题描述】:
我正在尝试使用 thymeleaf 和 Select2 构建一个不错的多选。数据由 Thymeleaf 传输,并创建包含所有数据的多选。 Select2 只能有条件地工作。
在tag中使用style="width: 100%",问题没有解决。它可能附加到引导程序或其他东西。
[...] //Other Code
<div class="row">
<div class="col-sm-12">
<label for="sektor">Sektoren</label>
<div class="input-group">
<select id="sektoren" class="select2_multiple" multiple="multiple" name="sektoren[]" th:field="*{sektoren}" size=4>
<option th:each="sektoren : ${konfigForm.sektorenArray}" th:value="${sektoren}" th:utext="${sektoren}"></option>
</select>
[...] //Some Code for the Info-Modul Button (working fine)
</div>
</div>
</div>
问题,选择字段没有延伸到整个页面。这些值是垂直列出的,整个字段都是压缩的。
【问题讨论】:
标签: html bootstrap-4 thymeleaf jquery-select2