简体   繁体   中英

How to make button group 100% with non-equal size buttons without btn-group-justified (one large and one small) in Bootstrap?

I want to make some button group in which one button occupy rest width and one button with some fixed width set by content. How to achieve this.

It can look like this for different resolutions:

| <- 100% ->                              |
| large button fill               | fixed |

| <- 100% ->                       |                   
| large button fill        | fixed |

| <- 100% ->                |
| large button fill | fixed |

I tested justified and but it give equal size button.

例如,如果固定宽度为20像素,则将按钮的宽度设置为calc(100% - 20px)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM