mobile.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <title>按移动端排列</title>
  2. <div class="layui-card layadmin-header">
  3. <div class="layui-breadcrumb" lay-filter="breadcrumb">
  4. <a lay-href="">主页</a>
  5. <a><cite>组件</cite></a>
  6. <a><cite>栅格</cite></a>
  7. <a><cite>按移动端排列</cite></a>
  8. </div>
  9. </div>
  10. <style>
  11. /* 这段样式只是用于演示 */
  12. #LAY-component-grid-mobile .layui-card-body{display: flex; justify-content: center; flex-direction: column; text-align: center; height: 200px;}
  13. </style>
  14. <div class="layui-fluid" id="LAY-component-grid-mobile">
  15. <div class="layui-row layui-col-space10">
  16. <div class="layui-col-xs6">
  17. <!-- 填充内容 -->
  18. <div class="layui-card">
  19. <div class="layui-card-header"></div>
  20. <div class="layui-card-body"></div>
  21. </div>
  22. </div>
  23. <div class="layui-col-xs6">
  24. <div class="layui-card">
  25. <div class="layui-card-header"></div>
  26. <div class="layui-card-body"></div>
  27. </div>
  28. </div>
  29. <div class="layui-col-xs4">
  30. <div class="layui-card">
  31. <div class="layui-card-header"></div>
  32. <div class="layui-card-body"></div>
  33. </div>
  34. </div>
  35. <div class="layui-col-xs4">
  36. <div class="layui-card">
  37. <div class="layui-card-header"></div>
  38. <div class="layui-card-body"></div>
  39. </div>
  40. </div>
  41. <div class="layui-col-xs4">
  42. <div class="layui-card">
  43. <div class="layui-card-header"></div>
  44. <div class="layui-card-body"></div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="layui-row layui-col-space10">
  49. <div class="layui-col-xs3">
  50. <div class="layui-card">
  51. <div class="layui-card-header"></div>
  52. <div class="layui-card-body"></div>
  53. </div>
  54. </div>
  55. <div class="layui-col-xs3">
  56. <div class="layui-card">
  57. <div class="layui-card-header"></div>
  58. <div class="layui-card-body"></div>
  59. </div>
  60. </div>
  61. <div class="layui-col-xs3">
  62. <div class="layui-card">
  63. <div class="layui-card-header"></div>
  64. <div class="layui-card-body"></div>
  65. </div>
  66. </div>
  67. <div class="layui-col-xs3">
  68. <div class="layui-card">
  69. <div class="layui-card-header"></div>
  70. <div class="layui-card-body"></div>
  71. </div>
  72. </div>
  73. <div class="layui-col-xs3">
  74. <div class="layui-card">
  75. <div class="layui-card-header"></div>
  76. <div class="layui-card-body"></div>
  77. </div>
  78. </div>
  79. <div class="layui-col-xs3">
  80. <div class="layui-card">
  81. <div class="layui-card-header"></div>
  82. <div class="layui-card-body"></div>
  83. </div>
  84. </div>
  85. <div class="layui-col-xs3">
  86. <div class="layui-card">
  87. <div class="layui-card-header"></div>
  88. <div class="layui-card-body"></div>
  89. </div>
  90. </div>
  91. <div class="layui-col-xs3">
  92. <div class="layui-card">
  93. <div class="layui-card-header"></div>
  94. <div class="layui-card-body"></div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. <script>
  100. layui.use(['admin'], function(){
  101. var $ = layui.$
  102. ,admin = layui.admin
  103. ,table = layui.table
  104. ,element = layui.element;
  105. });
  106. </script>