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;
    width: 300px;
}

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM