zoukankan      html  css  js  c++  java
  • html 后台页面布局

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/style.css" rel="stylesheet">
    <style>
    body{
    margin:0;
    }
    .left{
    float:left;
    }
    .right{
    float:right;
    }
    .clear{
    clear:both;
    }
    .pg-header .header{
    margin: 0 auto;
    100%;
    min-1080px;
    height: 48px;
    background-color:#2a6496;
    line-height: 48px;
    color: white;
    }
    .pg-header .header .logo{
    font-size:16px;
    font-weight: 600;
    200px;
    text-align: center;
    padding:0 20px;
    }
    .pg-header .header .user{
    150px;
    height: 48px;
    position: relative;
    }
    .pg-header .header .user-list{
    120px;
    background-color: grey;
    position: absolute;
    top:40px;
    right:80px;
    display:none;
    z-index: 10;
    }
    .pg-header .header .user-list a{
    display: block;
    }
    .pg-header .header .user a img{
    height: 32px;
    32px;
    border-radius: 50%;
    padding: 0 5px;
    vertical-align: middle;
    }
    .pg-header .header:hover .user-list{
    display: block;

    }
    .pg-content .left_content{
    position: absolute;
    top:48px;
    left:0;
    bottom: 0;
    280px;
    background-color: grey;
    }
    .pg-content .right_content{
    position: absolute;
    right:0;
    top:48px;
    bottom: 0px;
    left:285px;
    background-color: #eeeeee;
    overflow: auto;
    }
    .pg-content .right_content .right_text{
    min- 780px;
    background-color: red;
    z-index: 9;
    }
     
    </style>
    </head>
    <body>
    <div class='pg-header'>
    <div class='header'>
    <div class='logo left'>博客</div>
    <div class='user right'><a><img src='head2.jpg'/>howhy</a></div>
    <div class='user-list'><a>个人中心</a><a>设置</a></div>
    </div>
    </div>
    <div class='pg-content'>
    <div class='left_content'></div>
    <div class='right_content'>
    <div class='right_text'>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <p>erwer</p>
    <div>
    </div>
    </div>
    <div class='pg-footer'></div>
    </body>
    </html>
  • 相关阅读:
    第二周例行报告
    洛谷 P3384 【模板】轻重链剖分
    洛谷 P3380 【模板】二逼平衡树(树套树)
    洛谷 P4568 [JLOI2011]飞行路线
    2018 ICPC Asia Nanjing Regional Preliminary L. Magical Girl Haze
    牛客 2020 牛客国庆集训派对 day8 G. Shuffle Cards
    洛谷 P3224 [HNOI2012]永无乡
    洛谷 P1486 [NOI2004]郁闷的出纳员
    洛谷 P3391 【模板】文艺平衡树
    洛谷 P3369 【模板】普通平衡树
  • 原文地址:https://www.cnblogs.com/howhy/p/7302438.html
Copyright © 2011-2022 走看看