如何使按钮组100%与不相等大小的按钮没有btn-group-justified(一个大一个小)在Bootstrap



我想创建一个按钮组,其中一个按钮占用休息宽度,另一个按钮占用固定宽度,由内容设置。如何做到这一点。

对于不同的分辨率,它看起来像这样:

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

我测试了一下,但是它给出了相等大小的按钮。

设置按钮的宽度为calc(100% - 20px),例如,如果该固定宽度为20px。

相关内容

最新更新