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

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>后台界面布局</title>
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            .wrap {
                min-width: 100%;
                position: absolute;
                min-height: 100%;
                overflow: hidden;
            }
            .head-div {
                position: absolute;
                box-sizing: border-box;
                width:100%;
                height: 70px;
                line-height: 70px;
                background-color: #1299ff;
                min-width: 824px !important;
                z-index:3;
            }
            .left-div {
                position: absolute;
                box-sizing: border-box;
                width: 150px;
                height: 100%;
                padding-top: 70px;
                background: #4d5e70 bottom;
                z-index:2;
            }
            .body-div {
                position: absolute;
                box-sizing: border-box;
                width: 100%;
                height: 100%;
                background-color: #00ff21;
                padding-left: 150px;
                padding-top: 70px;
                min-width: 824px !important;
                z-index:1;
            }
        </style>
    </head>
    <body>
        <div class="wrap">
            <div class="head-div">head</div>
            <div class="left-div">left</div>
            <div class="body-div">boby</div>
        </div>
    </body>
    </html>

    效果如下:

  • 相关阅读:
    printf,sprintf,fprintf的区别与联系
    linux repo init 遇到的问题
    POSTMAN使用说明
    HTTP协议-深入了解
    HTTP协议-详解篇
    HTTP协议-基础篇
    多线程学习
    I/O流
    String类学习&泛型
    集合
  • 原文地址:https://www.cnblogs.com/hllive/p/6005232.html
Copyright © 2011-2022 走看看