[HTML] 纯文本查看 复制代码
<style>
.el‐header,
.el‐footer {
background‐color: #B3C0D1;
color: #333;
text‐align: left;
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: 590px;
}
</style>
<body>
<div id="app">
<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>
</body>
<script>
new Vue({
el: '#app'
});
</script>
[HTML] 纯文本查看 复制代码
<el‐menu>
<el‐submenu index="1">
<template slot="title">
<i class="el‐icon‐location"></i>
<span slot="title">导航一</span>
</template>
<el‐menu‐item>选项1</el‐menu‐item>
<el‐menu‐item>选项2</el‐menu‐item>
<el‐menu‐item>选项3</el‐menu‐item>
</el‐submenu>
<el‐submenu index="2">
<template slot="title">
<i class="el‐icon‐menu"></i>
<span slot="title">导航二</span>
</template>
<el‐menu‐item>选项1</el‐menu‐item>
<el‐menu‐item>选项2</el‐menu‐item>
<el‐menu‐item>选项3</el‐menu‐item>
</el‐submenu>
</el‐menu>