1.原理:overflow-y:scroll;
position:fixed;
2.代码
.el-aside {
position: fixed;
left: 0;
height: 100%;
width: 13%;
overflow-y: scroll;
}
.el-aside ul li {
width: 100%;
}
.el-container {
padding-left: 7%;
}
1.原理:overflow-y:scroll;
position:fixed;
2.代码
.el-aside {
position: fixed;
left: 0;
height: 100%;
width: 13%;
overflow-y: scroll;
}
.el-aside ul li {
width: 100%;
}
.el-container {
padding-left: 7%;
}