1.页面布局

      html模板 练习(仿照抽屉网)

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        body{
            margin: 0 auto;
        }

        .pg-header{
            height: 48px;
            background-color:#2459a2;
            color: white;
            line-height: 48px;
        }


        .pg-content .menu{
            position: absolute;
            background-color: #dddddd;
            top: 48px;
            left: 0;
            bottom: 0;
            width: 200px;
        }
        .pg-content .content{
            position: absolute;
            background-color: #00bbee;
            top: 48px;
            right: 0;
            bottom: 0;
            left: 200px;
            overflow: auto;    #a模板b模板切换
        }


    </style>
</head>
<body>
    <div class="pg-header">
         <div class="logo"><a>LOGO</a></div>
    </div>


    <div class="pg-content">

        <div class="menu"><a>菜单界面</a></div>

        <div class="content"><a>content</a></div>

    </div>

    <div class="pg-footer"></div>
</body>
</html>
View Code

相关文章: