【问题标题】:Bootstrap 3 column not ordering properlyBootstrap 3 列未正确排序
【发布时间】:2014-07-15 07:48:06
【问题描述】:

我正在使用 Bootstrap 3 并尝试将网格堆叠在一起(A、B、C、D、E)

移动网格堆叠似乎工作正常,但主要问题是当我在桌面上查看它时,网格似乎不适合它们应有的位置,例如 E 的框:

这是我的代码:

<div class="row">
   <div class="col-md-8">
    <!-- Main Hero Image -->
     <p>A</p>
   </div>

   <div class="col-md-4">
    <!-- Side Content-->
    <p>B</p>
   </div>

     <div class="col-md-4 col-md-push-8">
        <!--Music Player-->
       <p>C</p>

       <!--Upcoming Events-->
       <p>D</p>     
     </div>

    <div class="col-md-4 col-md-pull-8">
      <!--Recent Events-->
      <p>E</p>

    </div>
</div>

A 和 E 的列大小应为 8,B、C 和 D 的列大小应为 4

【问题讨论】:

标签: css twitter-bootstrap responsive-design grid multiple-columns


【解决方案1】:

看看这个http://jsfiddle.net/C5rpV/1/ 为了更好地理解看这个http://codepen.io/anon/pen/fibvt

刚刚改了

  <div class="col-md-8 col-md-pull-4">
      <!--Recent Events-->
      <p>E</p>
  </div>

【讨论】:

  • 不敢相信我忘了把 8 改成 4!非常感谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-12-06
  • 1970-01-01
  • 2014-06-04
  • 2015-03-09
  • 1970-01-01
  • 2014-09-16
  • 2012-04-30
相关资源
最近更新 更多