
<title>按移动端排列</title>

<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">主页</a>
    <a><cite>组件</cite></a>
    <a><cite>栅格</cite></a>
    <a><cite>按移动端排列</cite></a>
  </div>
</div>

<style>
/* 这段样式只是用于演示 */
#LAY-component-grid-mobile .layui-card-body{display: flex; justify-content: center; flex-direction: column; text-align: center; height: 200px;}
</style>

<div class="layui-fluid" id="LAY-component-grid-mobile">
  <div class="layui-row layui-col-space10">
    <div class="layui-col-xs6">
      <!-- 填充内容 -->
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs6">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs4">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs4">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs4">
     <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
  </div>
  <div class="layui-row layui-col-space10">
    <div class="layui-col-xs3">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
     <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
     <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
    <div class="layui-col-xs3">
      <div class="layui-card">
        <div class="layui-card-header"></div>
        <div class="layui-card-body"></div>
      </div>
    </div>
  </div>
</div>

<script>
layui.use(['admin'], function(){
  var $ = layui.$
  ,admin = layui.admin
  ,table = layui.table
  ,element = layui.element;

});
</script>