bootstrap 3 input-group 100% width

后端 未结 5 2094
无人及你
无人及你 2021-02-12 23:59

In the bootstrap documentation, they have input groups that span 100% width with no additional markup: http://getbootstrap.com/components/#input-groups

5条回答
  •  鱼传尺愫
    2021-02-13 00:45

    If you have select2 as a part of your "input-group", you better create it with "resolve" parameter:

    $(document).ready(function() { 
        $("#myselect").select2({ width: 'resolve' });           
    });
    

提交回复
热议问题