【问题标题】:Add automatical offset between columns Bootstrap在列之间添加自动偏移 Bootstrap
【发布时间】:2022-01-08 01:51:09
【问题描述】:

如何在引导列之间添加自动偏移? 例如如果有col-5col-4 偏移量将是3 等等

【问题讨论】:

    标签: html css bootstrap-4 bootstrap-5


    【解决方案1】:

    row 上添加类justify-content-between

    <div class="container">
      <div class="row justify-content-between">
        <div class="col-5">
          1 of 2
        </div>
        <div class="col-4">
          2 of 2
        </div>
      </div>
     </div>
    

    https://jsfiddle.net/lalji1051/cx8gq30j/1/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-01-22
      • 2014-05-24
      • 2014-01-20
      • 2017-05-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多