input-group-addon with bootstrap-select

后端 未结 3 583
忘掉有多难
忘掉有多难 2021-01-03 20:12

I tried to use Label 2 with bootstrap-select, but it looks different to the bootstrap (Label 1) one. How is it possible to get the two la

3条回答
  •  轮回少年
    2021-01-03 21:17

    From Bootstrap docs:

    Extend form controls by adding text or buttons before, after, or on both sides of any text-based . Use .input-group with an .input-group-addon or .input-group-btn to prepend or append elements to a single .form-control.

    You need to wrap the select and .input-group-addon in a .input-group:

    Label 2

    Check it out:

    
    
    Labe 1


    Label 2

提交回复
热议问题