您当前的位置: 首页 >  css

王佳斌

暂无认证

  • 1浏览

    0关注

    821博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

CSS - 后台管理系统布局示例(上左中)

王佳斌 发布时间:2021-05-10 16:58:17 ,浏览量:1

效果图

在这里插入图片描述

实现代码

复制,运行即可查看效果。

DOCTYPE html>


    
    后台管理系统布局示例
    
        *{
            margin:0px;
            padding:0px;
        }
        section {
            min-width: 400px;
            background: rgb(247, 247, 247);
        }
        article{
            float: left;
            height:100%;
            min-height: 200px;
            width: 230px;
            margin-left: -100%; 
            background: rgb(175, 58, 23);
        }
        address{
            float: left;
            height:100%;
            min-height: 200px;
            width:100%;
            background: lightgreen;
        }
        .content{
            margin:0 0 0 230px;
        }
        .header{
            height:50px;
            background: #37BDE7;
            text-align: center;
        }
        .main{
            position: absolute;
            top:50px;
            bottom:0;
            width:100%;
            background: #EB9E05;
            margin-left:-230px;
            overflow: auto;/*出现滚动条*/
        }
        .main-box{
            padding-left: 230px;
        }
        .logo{
            height:50px;
            background: #710080;
        }
        .nav{
            position: absolute;
            top:50px;
            bottom:0;
            width: 230px;
            background: #d11453;
            overflow: auto;/*出现滚动条*/
        }
    



    

        
        
            
                
                    头部
                

                
                    
                        内容(超出会出现滚动条)
                    
                
            
        
        

        
        
            
                logo
            

            
                导航(超出会出现滚动条)
            
        
        
        
    



关注
打赏
1665568777
查看更多评论
立即登录/注册

微信扫码登录

0.0404s