element ui 栅格布局

1 <el-row>
2   <el-col :span="24"><div class="grid-content bg-purple-dark"></div></el-col>
3 </el-row>
4 <el-row>
5   <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
6   <el-col :span="12"><div class="grid-content bg-purple-light"></div></el-col>
7 </el-row>

记得每一行都要加<el-row></el-row>,不然到后面会出bug。比如侧边栏不能正常显示问题。

posted @ 2018-08-13 20:40  叶子玉  阅读(8890)  评论(0编辑  收藏  举报