【问题标题】:Add gaps between rows and columns in bootsrap在引导程序中添加行和列之间的间隙
【发布时间】:2023-01-23 15:05:38
【问题描述】:

如何在不破坏引导程序的情况下在行和列之间添加间隙。我想要每行三列,所以我给了 col-4 但是当我添加间隙或边距时它会中断。

我想要这样

但是当我添加边距或间隙时,它会像这样中断

【问题讨论】:

    标签: css bootstrap-5


    【解决方案1】:

    查看 bootstrap 中的 Gutters 以解决列之间的间隙问题。

    Gutters
    Gutters are the padding between your columns, used to responsively space and align content in the Bootstrap grid system.
    

    Documentation

    【讨论】: