vue 配合element

HTML

<body>
    <div id="app">
        <div class="box">
            <el-container>
                <el-header>Header</el-header>
                <el-container>
                    <el-aside width="200px">Aside</el-aside>
                    <el-main>Main</el-main>
                </el-container>
            </el-container>
        </div>
    </div>
</body>

CSS样式

        html,
        body {
            margin: 0;
            padding: 0;
            height: 100%;
        }
        #app,.box{
            height: 100%;
        }
         .el-container {
            height: 100%;
        }
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐