要在版本 4 中使用 bootstrap-grid,我至少需要导入什么?

What is the minimum I need to import to use bootstrap-grid in version 4?

我使用 yarn

将 bootstrap 的源代码下载到我的应用程序中
yarn install boostrap

我尝试在我的应用程序中导入 bootstrap-grid.css,当我复制入门示例时,外观没有应用网格布局样式。

https://getbootstrap.com/docs/4.0/examples/pricing/

当我添加整个 boostrap.css 时,它工作正常。

除了 bootstrap-grid,我还应该导入什么来获得 layout/grid 组件?

定价示例使用 card-deck 和卡片,而不是网格。

如果你想要卡片,你需要使用bootstrap.cssbootstrap-grid.css 专门用于 grid system.

以下文件对我有用。我不确定这是否记录在任何地方。

functions.scss
variables.scss
mixins.scss
reboot.scss
_grid.scss