头部固定,底部固定,左侧菜单出现滚动条,效果图如下:
文章图片
代码
【后台管理系统自己手写页面布局】
文章图片
{{$route.meta.oneTitle}}
{{$route.meta.twoTitle}}
文章图片
{{companyName}}
退出
背调中心
背调订单
发起背调
套餐管理
资产中心
账户余额
用户中心
基本信息
企业认证
.mars-header {
background-color: #FFFFFF;
z-index: 1000;
height: 60px;
position: relative;
border-bottom: none;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
} .mars-layout-admin .mars-logo {
position: absolute;
left: 0;
top: 0;
width: 200px;
height: 100%;
line-height: 60px;
text-align: center;
color: #F43B66;
font-size: 28px;
font-weight: bold;
background: #2f3848;
box-sizing: border-box;
border-bottom: 1px solid #626e83;
cursor: pointer;
} .mars-layout-admin .mars-header .mars-nav {
background: 0 0;
} .mars-nav {
position: relative;
padding: 0 20px;
background-color: #393D49;
color: #fff;
border-radius: 2px;
font-size: 0;
box-sizing: border-box;
} .mars-nav * {
font-size: 16px;
} .mars-nav .mars-nav-item {
position: relative;
display: inline-block;
vertical-align: middle;
line-height: 60px;
} .mars-layout-left {
position: absolute !important;
left: 200px;
top: 0;
line-height: 60px;
color: #282828;
} .mars-layout-right {
position: absolute !important;
right: 0;
top: 0;
line-height: 60px;
} .mars-layout-admin .mars-side {
top: 60px;
width: 200px;
overflow-x: hidden;
} .mars-bg-black {
background-color: #2f3848 !important;
color: #fff !important;
} .mars-side {
position: fixed;
left: 0;
top: 0;
bottom: 0;
z-index: 999;
width: 200px;
overflow-x: hidden;
} .mars-side-scroll {
position: relative;
width: 220px;
height: 100%;
overflow-x: hidden;
} .mars-layout-admin .mars-body {
position: fixed;
top: 60px;
/* bottom: 44px;
*/
} .mars-body {
position: absolute;
left: 200px;
right: 0;
top: 0;
bottom: 0;
z-index: 998;
width: auto;
overflow: hidden;
overflow-y: auto;
box-sizing: border-box;
background: #F2F2F2;
} .mars-layout-admin .mars-footer {
position: fixed;
left: 200px;
right: 0;
bottom: 0;
height: 44px;
line-height: 44px;
padding: 0 15px;
background-color: #8A8A8A;
} /* 顶部右侧样式 */
.el-dropdown-link {
cursor: pointer;
} .el-icon-arrow-down {
font-size: 12px;
} .mars-nav-img {
width: 30px;
height: 30px;
margin-right: 10px;
border-radius: 50%;
} /* 面包屑样式 */
.el-breadcrumb__item:last-child .el-breadcrumb__inner {
color: #F43B66 !important;
} /* 左侧菜单栏二级菜单样式 */
.menu-item {
padding-left: 55px !important;
}
推荐阅读
- vue|vue 获取当前路由path_vue router怎么获得当前页面的路由 ?
- 笔记|Vue原理深度剖析
- vue|vue实现原理
- vue|Vue2响应式原理解析和实现
- Vue|Vue2的核心原理剖析
- vue|基于spring cloud + nacos + gateway + ssm+的学生管理系统
- VueJs|【Vue 响应式原理】发布订阅模式、观察者模式
- vue|Vue.js响应式原理(三)——发布订阅模式和观察者模式
- vue|2022 年最新前端 Vue 项目重构总结