Fixed width buttons with Bootstrap

后端 未结 12 553
臣服心动
臣服心动 2021-01-29 18:36

Does Bootstrap support fixed width buttons? Currently if I have 2 buttons, \"Save\" and \"Download\", the button size changes based on content.

Also what is the right wa

12条回答
  •  醉酒成梦
    2021-01-29 18:58

    This may be a silly solution, but I was looking for a solution to this problem and got lazy.

    Anyway, using input class="btn..." ... instead of button and padding the value= attribute with spaces so that they are all the same width works pretty well.

    eg :

        
    
    

    I haven't been using bootstrap all that long, and maybe there is a good reason not to use this approach, but thought I might as well share

提交回复
热议问题