gpt4 book ai didi

css - col-md-3 或 col-md-4 中的 Bootstrap3 300x250 横幅

转载 作者:行者123 更新时间:2023-11-28 11:43:19 24 4
gpt4 key购买 nike

我们使用具有基本两列布局的 bootstrap3。左列的类是 col-md-9,右列也是 col-md-3

但是,当我们想在右栏中放置横幅时会遇到问题。

对于一个普通的广告横幅(300x250px)col-md-3是小(width is 261px) col-md-4 很大 (359px)

我们如何通过保留 bootstrap 的所有响应功能将 col-md-3 固定为 300px

有什么通用的方法可以做到这一点吗?

最佳答案

在您的情况下,最好将默认的 12 列网格更改为 16 列(或其他列)

尝试更改以下变量:

// Number of columns in the grid system
@grid-columns: 12;
// Padding, to be divided by two and applied to the left and right of all columns
@grid-gutter-width: 30px;

例如:
右 - 5 列
左 - 9 列

关于css - col-md-3 或 col-md-4 中的 Bootstrap3 300x250 横幅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20586372/

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