html - Bootstrap 3.x 类似于 Bootstrap 2.3 中的网格列排序

标签 html css twitter-bootstrap

现在我知道 Bootstrap 3.x 已经出来了,我应该转移到 3.x。但是,这是在使用 Bootstrap 2.3.1 的现有站点中提出的更改请求。

这是我想要实现的目标:

我在 12 列 Bootstrap 网格中使用 3 列布局:

<div class='row'>
  <div class='span3'></div>
  <div class='span6'></div>
  <div class='span3'></div>
</div>

期望的响应行为是:

大屏幕:

[ X ][ Y Y ][ Z ]

平板电脑肖像:

[ Y    Y ]
[ X ][ Z ]

较小的屏幕:

[YY]
[X]
[Z]

现在,我知道这可以使用 grid column ordering of Bootstrap 3.x 来实现.但是,我需要使用 Bootstrap 2.3 来实现这一点。

Fiddle for those willing to give this a try!

最佳答案

在 Bootstrap 2.x.x 中,该行的左边距是负的,而 span-x 的左边距是用来获取装订线的。如果第二个跨度堆叠到下一行,它肯定会有左边距。

我的建议是只从 http://getbootstrap.com/customize/ 下载网格并附加到现有的 Bootstrap css 或自定义 css 中。使用新的网格系统来获得你想要的。

关于html - Bootstrap 3.x 类似于 Bootstrap 2.3 中的网格列排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21036995/

相关文章:

html - 如何在 bootstrap 3 中将下拉菜单放入另一个下拉菜单?

javascript - Chrome canvas 2d context measureText 给我奇怪的结果

css - 在渲染插件中,由 css 导入的外部字体在下载 pdf 时不起作用

html - 文本不以响应式背景图像为中心

javascript - 如何在daterangepicker中添加时间

html - 删除 Bootstrap 表中的所有边框

javascript - 如何在没有 jquery 的情况下制作 slider 图片库

javascript - 16 :9 Aspect Ratio App & Background (Accounting for space taken by the Nav)

html - 响应式元素——拉伸(stretch)再堆叠

html - CSS 背景 : Adding left padding via using repeat-x with single element