更改 bootstrap 4 中列之间的填充(如果可能,通过变量)

changing padding between columns in bootstrap 4 ( by a variable if possible)

我想更改 Bootstrap 4.

中列的填充 (left/right)

例如

col-md-4(好像是 15px 左右填充),我想把这个说小一点 10px

我已经查看了 _variables.scss,但没看到任何东西,看起来它可以做到。

您可以在文件 'scss/_variables.scss' 的第 205 行找到它。

$grid-gutter-width: 30px !default;

您可以将“30px”更改为您想要的值或变量。