【发布时间】:2018-08-04 22:04:01
【问题描述】:
我在理解 Bootstrap 4's Spacing Documentation 中提到的 $spacer 变量(?)时遇到问题,并且找不到任何关于它的文档。
例如:1 - (by default) for classes that set the margin or padding to $spacer * .25
.ml-1 {
margin-left: ($spacer * .25) !important;
}
我的理解是变量的值要乘以0.25,但是如果这个值甚至没有设置,这怎么可能呢?
【问题讨论】:
-
你读到了这个
You can add more sizes by adding entries to the $spacers Sass map variable? -
是的,我读过,但在代码中找不到。我终于设法找到该变量的位置:...\MDB Free\scss\core\bootstrap_variables.scss 无论如何感谢 Temani Afif。 =)