123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <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>
|