gpt4 book ai didi

css - 在 Bootstrap 中增加侧边距的最佳做法是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 03:48:50 25 4
gpt4 key购买 nike

我想在 Bootstrap 中增加页面两侧的填充。在官方网站上我没有看到任何关于它的话题。

enter image description here

什么是最佳实践?

最佳答案

您可以像这样将 CSS 用于中的第一列和最后一列..

[class*='col-']:first-child {
padding-left:0;
}

[class*='col-']:last-child {
padding-right:0;
}

演示:http://www.bootply.com/ywLU4iKl08

关于css - 在 Bootstrap 中增加侧边距的最佳做法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23698890/

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