赞
踩
- <template>
- <div class="common-layout">
- <el-container>
- <el-header>Header</el-header>
- <el-container>
- <el-aside width="200px">Aside</el-aside>
- <el-container>
- <el-main>Main</el-main>
- <el-footer>Footer</el-footer>
- </el-container>
- </el-container>
- </el-container>
- </div>
- </template>
- <style scope>
-
- .el-header,
- .el-footer {
- background-color: #B3C0D1;
- color: #333;
- text-align: center;
- line-height: 60px;
- }
-
- .el-aside {
- background-color: #D3DCE6;
- color: #333;
- text-align: center;
- line-height: 200px;
- }
-
- .el-main {
- background-color: #E9EEF3;
- color: #333;
- text-align: center;
- line-height: 160px;
- }
-
-
-
-
- </style>
以上代码出现
只占半屏
样式加入以下代码全屏展示
-
- .common-layout {
- position:absolute;
- top:0;
- right:0;
- bottom:0;
- left:0;
- }
- .el-container {
- height: 100%;
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。