Zurb Foundation 5:网格列堆叠

Zurb Foundation 5: Grid Column Stacking(Zurb Foundation 5:网格列堆叠)

本文介绍了Zurb Foundation 5:网格列堆叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Foundation 新手,我只知道如何使用网格的基本概念.

I'm new to foundation and I only have the basic idea on how to use grids.

在移动/小屏幕上查看时,我有这 3 列需要堆叠(参见移动"图片).

I have these 3 columns that need to be stacked (see "mobile" image) when viewed on mobile/small screens.

在大屏幕上应该是这样的:

It should look something like this when in larger screens:

这是我当前的代码.这不是我想要的,我开始感到困惑.

Here's my current code. It's not quite what I wanted, and I'm starting to get confused.

<div class="row">
    <div class="large-12" style="background-color:#bdc3c7;">
      <div class="medium-4 medium-push-8 columns" style="background-color: #1abc9c; border: 1px solid #2c3e50;">
        <p>TOP ROW</p>
      </div>

      <div class="medium-8 medium-pull-4 columns" style="background-color: #e74c3c; border: 1px solid #2c3e50; height: 250px;">
        <p>MIDDLE ROW</p>
      </div>

      <div class="medium-4 columns" style="background-color: #9b59b6; border: 1px solid #2c3e50;">
        <p>BOTTOM</p>
      </div>
    </div>
</div>

推荐答案

这个网格系统适用于大屏幕和小屏幕

This grid system will work for large and small screens

   <div class="row">
     <div class="small-12 large-8 columns"></div>
     <div class="small-12 large-4 columns"></div>
     <div class="small-12 large-4 columns"></div>
   </div>

这篇关于Zurb Foundation 5:网格列堆叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Zurb Foundation 5:网格列堆叠

基础教程推荐