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

2021-04-13 22:26

阅读:378

标签:over   ati   导航条   操作   min   top   bsp   height   idt   

/*导航条*/
.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;
}

 

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

标签:over   ati   导航条   操作   min   top   bsp   height   idt   

原文地址:https://www.cnblogs.com/aizhinong/p/12382326.html

上一篇:02-css的选择器

下一篇:cwebp 命令大全


评论


亲,登录后才可以留言!