gpt4 book ai didi

html - 将装订线添加到 bootstrap flexbox 网格

转载 作者:行者123 更新时间:2023-11-28 05:58:40 25 4
gpt4 key购买 nike

我正在尝试向 Bootstrap 4 网站添加装订线。我也在使用 enable-flexbox:true;

我正在尝试实现类似 http://designmodo.com/bootstrap-4-flexbox/ 的外观: enter image description here

每个元素的底部和右侧都有相等的装订线。

我的代码非常简单:

<div class='row'>
<div class='col-md-6 block'>
</div>
</div>

.block {
background: black;
height: 200px;
}

但是,这不会产生排水沟。所有的 block 都在连接。我意识到我可以将 block 作为新的 div 放在 .col-md-4 下,但这会破坏 flexbox 的响应能力。

最佳答案

更改 Bootstrap 默认装订线大小的简单方法 http://arnique.net/web-design/58/a-quick-guide-to-changing-bootstraps-gutter-width/

关于html - 将装订线添加到 bootstrap flexbox 网格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36902087/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com