码迷,mamicode.com
首页 > 其他好文 > 详细

后台布局之反例

时间:2018-04-06 10:54:55      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:float   html   das   menu   hit   meta   后台   body   ack   

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .pg-header{
            height: 48px;
            background-color: #1d9ad6;
            color: white;
        }
        .pg-content{}
        .pg-footer{}
        .pg-content .menu{
            width:20%;
            background-color: red;
            min-width: 200px;
            height: 700px;
        }
        .pg-content .content{
            width:80%;
            background-color: green;
            min-width: 200px;

        }
        .left{
            float:left;
        }
        .right{
            float: right;
        }
    </style>
</head>
<body style="margin: 0">
        <div class="pg-header"></div>
        <div class="pg-content">
            <div class="menu left">asd</div>
            <div class="content left">
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
                <p>asdasd</p><p>asdasd</p><p>asdasd</p><p>asdasd</p>
            </div>
        </div>
        <div class="pg-footer"></div>
</body>
</html>

  

后台布局之反例

标签:float   html   das   menu   hit   meta   后台   body   ack   

原文地址:https://www.cnblogs.com/qiangayz/p/8725778.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!