私はhtmlのブートストラップで複数のselect2選択フォームを使用しようとしています。しかし、私はサイジングに問題がある、select2ボックスはグリッドで動作していない、それはまた、次のアイテムのサイズを混乱させる。 HTMLselect2ブートストラップサイジング問題
<div class="select2-container col-md-11">
<select class="form-control s2" id="complaint" multiple="multiple" name=
"complaint[]">
<option value="bad_breath">
Bad Breath
</option>
<option value="bleeding_gum">
Bleeding Gum
</option>
<option value="swollen_gum">
Swollen Gum
</option>
<option value="gum_pain">
Gum Pain
</option>
<option value="loose_teeth">
Loose Teeth
</option>
<option value="sensitive_teeth">
Sensitive Teeth
</option>
<option value="darkened_teeth">
Darkened Teeth
</option>
<option value="damaged_teeth">
Damaged Teeth
</option>
</select>
</div>
JS
<script type="text/javascript">
$(".s2").select2({
closeOnSelect: false
});
$(document).ready(function() {});
ここ
全コードhttp://www.codeply.com/go/Ly1UHW2HT2
ありがとうございました。 JSとCSSを追加しましたが、データ幅プロパティは使用しませんでした。 – Shawon0418