How to group buttons in different forms tags in Bootstrap

后端 未结 2 1574
陌清茗
陌清茗 2021-02-07 22:09

How do you group buttons within different form tags together in Twitter\'s Bootstrap?

Right now what I get is:

2条回答
  •  我在风中等你
    2021-02-07 22:58

    If you'd rather not use scripting you can use hidden inputs (or any inline element, such as ) to create the proper first:child and last:child relationships:

    Fiddle demo

    In the latest versions of Bootstrap 2 I did have to add one bit of CSS override:

    form.btn-group + form.btn-group {margin-left: -5px;}
    

提交回复
热议问题