You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.8 KiB
80 lines
1.8 KiB
<cn>
|
|
#### 基本结构
|
|
典型的页面布局。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Basic Structure
|
|
Classic page layouts.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div id="components-layout-demo-basic">
|
|
<a-layout>
|
|
<a-layout-header>Header</a-layout-header>
|
|
<a-layout-content>Content</a-layout-content>
|
|
<a-layout-footer>Footer</a-layout-footer>
|
|
</a-layout>
|
|
|
|
<a-layout>
|
|
<a-layout-header>Header</a-layout-header>
|
|
<a-layout>
|
|
<a-layout-sider>Sider</a-layout-sider>
|
|
<a-layout-content>Content</a-layout-content>
|
|
</a-layout>
|
|
<a-layout-footer>Footer</a-layout-footer>
|
|
</a-layout>
|
|
|
|
<a-layout>
|
|
<a-layout-header>Header</a-layout-header>
|
|
<a-layout>
|
|
<a-layout-content>Content</a-layout-content>
|
|
<a-layout-sider>Sider</a-layout-sider>
|
|
</a-layout>
|
|
<a-layout-footer>Footer</a-layout-footer>
|
|
</a-layout>
|
|
|
|
<a-layout>
|
|
<a-layout-sider>Sider</a-layout-sider>
|
|
<a-layout>
|
|
<a-layout-header>Header</a-layout-header>
|
|
<a-layout-content>Content</a-layout-content>
|
|
<a-layout-footer>Footer</a-layout-footer>
|
|
</a-layout>
|
|
</a-layout>
|
|
</div>
|
|
</template>
|
|
|
|
<style>
|
|
#components-layout-demo-basic {
|
|
text-align: center;
|
|
}
|
|
#components-layout-demo-basic .ant-layout-header,
|
|
#components-layout-demo-basic .ant-layout-footer {
|
|
background: #7dbcea;
|
|
color: #fff;
|
|
}
|
|
#components-layout-demo-basic .ant-layout-footer {
|
|
line-height: 1.5;
|
|
}
|
|
#components-layout-demo-basic .ant-layout-sider {
|
|
background: #3ba0e9;
|
|
color: #fff;
|
|
line-height: 120px;
|
|
}
|
|
#components-layout-demo-basic .ant-layout-content {
|
|
background: rgba(16, 142, 233, 1);
|
|
color: #fff;
|
|
min-height: 120px;
|
|
line-height: 120px;
|
|
}
|
|
#components-layout-demo-basic > .ant-layout {
|
|
margin-bottom: 48px;
|
|
}
|
|
#components-layout-demo-basic > .ant-layout:last-child {
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
```
|