【发布时间】:2018-12-13 16:09:20
【问题描述】:
我在一次采访中被问到以下问题:
bootstrap 3 的网格系统中的问题是什么,已在 bootstrap 4 中修复,当时我没有找到答案,我搜索了很多,但从未找到好的答案,但据我所知 bootstrap 3有 col-sm, col-md, col-xl 如下:
<div class="container">
<div class="row">
<div class="col-sm">
One of three columns
</div>
<div class="col-sm">
One of three columns
</div>
<div class="col-sm">
One of three columns
</div>
</div>
</div>
但是当我被问到这个问题时,我完全糊涂了,所以请有人帮我详细了解它们之间的区别吗?
【问题讨论】:
-
@לבנימלכה 仅当您使用
col-sm三次时才会发生这种情况,只是为了清楚起见。它会自动检测需要多少网格,更多 here. -
OP谈
col-sm -
@לבנימלכה 这只是一个示例代码,OP正在询问3和4中网格系统的差异,以及4中添加的修复
-
我将所有信息都放在我的答案中(请随意编辑我的答案)
标签: html css twitter-bootstrap bootstrap-4