gpt4 book ai didi

css - 有没有办法让 Bootstrap 列更自然地流动?

转载 作者:行者123 更新时间:2023-11-28 09:45:53 25 4
gpt4 key购买 nike

目前我正在使用 BS3(还不能升级到 4,卡片看起来不错)而且我想不出让列正确流动的方法。我把所有东西都放在同一个“行”中,但它们没有“自然地”包裹——有没有办法做到这一点?这是我的意思的甜蜜绘画图,谢谢: enter image description here

最佳答案

仅使用 bootstrap 无法做到这一点,但可以通过结合 bootstrap 的网格功能和 masonry 来做到这一点图书馆,你会有这样的东西

<div id="container">
<div class="col-sm-4">...</div> // col instead of item
<div class="item">...</div>
<div class="item">...</div>
...
</div>

这是一个working demo enter image description here

关于css - 有没有办法让 Bootstrap 列更自然地流动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34322489/

25 4 0
文章推荐: css - 你如何使元素扩展以填充 flexbox 中的交叉轴?
文章推荐: css - :first-child over writing all of the tags within parent
?
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com