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

时间:2013-12-14 17:48:02

标签: css twitter-bootstrap twitter-bootstrap-3

我们使用bootstrap3基本的两列布局。左栏的班级为col-md-9,右侧也是col-md-3

但是,当我们想要将横幅放到右栏时,我们会遇到问题。

对于常见广告横幅(300x250px)col-md-3较小(width is 261px)col-md-4较大(359px)

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

有没有共同的方法来做到这一点?

1 个答案:

答案 0 :(得分:0)

在您的情况下,最好将默认的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列

相关问题