HTML页面布局,右侧菜单不动,左侧内容溢出后可以操作滚动条

/*导航条*/
.navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 0px;
    border: 1px solid transparent;
}

/*左侧菜单栏*/
.left-menu{
    /*padding: 20px;*/
    text-align: center;
    /*background-color: bisque;*/
    position: fixed;
    top: 50px;
    bottom: 0px;
    left: 0px;
     300px;
}

/*右侧表单*/
.right-content {
    position: fixed; /*固定用*/
    overflow: auto; /*当内容在可显示内容之外,生产自用的滚动条,与position: fixed一起用*/
    top: 50px;
    bottom: 0;
    right: 0;
    left: 300px;
    padding: 30px;
    padding-top: 0px;
}
原文地址:https://www.cnblogs.com/aizhinong/p/12382326.html