Input group - two inputs close to each other

后端 未结 11 995
刺人心
刺人心 2020-12-12 17:47

How can I make input group involves two inputs?

11条回答
  •  囚心锁ツ
    2020-12-12 18:34

    Assuming you want them next to each other:

    JSFiddle

    Update Nr.1: Should you want to use .input-group with this example:

    @
    .00

    JSFiddle

    The class .input-group is there to extend inputs with buttons and such (directly attached). Checkboxes or radio buttons are possible as well. I don't think it works with two input fields though.

    Update Nr. 2: With .form-horizontal the .form-group tag basically becomes a .row tag so you can use the column classes such as .col-sm-8:

    Updated JSFiddle with all three examples

提交回复
热议问题