• 简单布局


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title></title>
            <script type="text/javascript">
                
            </script>
            
        <style type="text/css">
            /* 清除默认样式*/
            *{
            margin: 0px;
            padding: 0px;
            }
        .header{
            width: 1000px;
            height: 150px;
            background-color: antiquewhite;
            margin: 0 auto;
        }
        .content{
            width: 1000px;
            height: 300px;
            background-color: cornflowerblue;
            margin: 10px auto;
        }
        .left{
            width: 200px;
            height: 100%;
            background-color: burlywood;
            float: left;
        }
        .center{
            width: 580px;
            height: 100%;
            background-color: yellow;
            float: left;
            margin: 0 10px;
        }
        .right{
            width: 200px;
            height: 100%;
            background-color: pink;
            float: left;
        }
        .footer{
            width: 1000px;
            height: 150px;
            background-color: darkgrey;
            margin: 0 auto;
        }
        .up{
            height: 135px;
            width: 560px;
            background-color: greenyellow;
            margin: 10px 10px;
        }
        .down{
            height: 135px;
            width: 560px;
            background-color: wheat;
            margin: 10px 10px;
            float: left;
        }
        .l{
            width: 100px;
            height: 115px;
            float: left;
            background-color: palevioletred;
            margin: 10px 10px 10px 10px;
        }
        .r{
            width: 430px;
            height: 115px;
            float: left;
            background-color: skyblue;
            margin: 10px 10px 10px 0px;
        }
        </style>
           
        </head>
        <body>
        <!-- 头部div -->
        <div class="header"></div>
        <div class="content">
            <div class="left"></div>
            <div class="center">
                <div class="up"></div>
                <div class="down">
                    <div class="l"></div>
                    <div class="r"></div>
                </div>
            </div>
            <div class="right"></div>
        </div>
        <div class="footer"></div>
        <!-- 主体内容div -->
        <!-- 底部信息div -->
        </body>
    </html>

  • 相关阅读:
    python-面向对象-类
    python- collections-time-datetime
    python-json-pickle-shelve-random-os-sys-hashlib
    python-递归函数
    python-迭代器
    python-内置函数
    python-易错问题
    python-闭包函数和装饰器
    pytho-函数作用域
    List 拆分集合与 读写XML配置文件
  • 原文地址:https://www.cnblogs.com/zuiaimiusi/p/11209460.html
Copyright © 2020-2023  润新知