Use ElementUI for page layout

Use Element UI for page layout Use ElementUI for page layout So using E L E m E n- T the U- the I into line page face cloth Board

<el-row :gutter="20">
  <el-col :span="16"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
</el-row>
<el-row :gutter="20">
  <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
</el-row>
<el-row :gutter="20">
  <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="16"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
</el-row>

<style>
  .el-row {
    
    
    margin-bottom: 20px;
    &:last-child {
    
    
      margin-bottom: 0;
    }
  }
  .el-col {
    
    
    border-radius: 4px;
  }
  .bg-purple-dark {
    
    
    background: #99a9bf;
  }
  .bg-purple {
    
    
    background: #d3dce6;
  }
  .bg-purple-light {
    
    
    background: #e5e9f2;
  }
  .grid-content {
    
    
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    
    
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41375318/article/details/115265746