--- order: 1 title: 顶部导航 + 侧边栏 --- 顶级导航在头部,次级导航在侧边栏。 ````jsx import { Menu, Breadcrumb, Icon } from 'antd'; import BrowserDemo from 'BrowserDemo'; const SubMenu = Menu.SubMenu; ReactDOM.render(
导航一 导航二 导航三
二级导航 二级导航 二级导航
首页 应用列表 某应用
内容区域
Ant Design 版权所有 © 2015 由蚂蚁金服体验技术部支持
, mountNode); ```` ````css .ant-layout-topaside { height: 100%; } .ant-layout-topaside .ant-layout-wrapper { padding: 0 50px; } .ant-layout-topaside .ant-layout-header { background: #404040; height: 64px; } .ant-layout-topaside .ant-layout-logo { width: 120px; height: 32px; background: #333; border-radius: 6px; margin: 16px 28px 16px 0; float: left; } .ant-layout-topaside .ant-layout-subheader { height: 48px; border-bottom: 1px solid #e9e9e9; background: #fff; } .ant-layout-topaside .ant-layout-breadcrumb { margin: 7px 0 -17px 24px; } .ant-layout-topaside .ant-layout-container { background: #fff; margin: 24px 0 0; position: relative; padding: 24px 0; overflow: hidden; } .ant-layout-topaside .ant-layout-sider { width: 224px; float: left; } .ant-layout-topaside .ant-layout-content { border-left: 1px solid #e9e9e9; padding: 0 24px; overflow: auto; position: relative; left: -1px; } .ant-layout-topaside .ant-layout-footer { height: 64px; line-height: 64px; text-align: center; font-size: 12px; color: #999; } ````