【发布时间】:2019-05-20 03:23:35
【问题描述】:
我在看这个视频,教练说引导程序要求我们在使用网格系统时使用容器/容器流体。然而,即使使用网格系统,她也未能始终使用容器。如果您有 1 行和一堆您做出响应的列,这是否意味着您仍在使用网格系统或者是否需要超过 1 行,因为那是她没有使用容器的情况,我很困惑为什么当引导程序声明我们应该使用容器时她没有?我有点困惑,因为我应该在什么时候使用容器,更重要的是,可以说我不使用容器而只使用网格系统,最终会发生什么?
【问题讨论】:
-
我认为文档很清楚:
Bootstrap requires a containing element to wrap site contents and house our grid system. You may choose one of two containers to use in your projects. Note that, due to padding and more, neither container is nestable.getbootstrap.com/docs/3.4/css/#overview-container .. 建议你换导师 -
来自同一文档:
Rows must be placed within a .container (fixed-width) or .container-fluid (full-width) for proper alignment and padding.
标签: html css bootstrap-4