美文网首页
基本布局

基本布局

作者: 浮华_e823 | 来源:发表于2018-11-21 23:16 被阅读0次
    <!DOCTYPE html>
    <html lang="en">
        <head>
            <meta charset="UTF-8">
            <title>页面布局</title>
            <style type="text/css">
                *{
                    margin: 0;
                    padding: 0;
                }
                .box1{
                    width: 1519.2px;
                    height: 30.8px;
                    background-color: chartreuse;
                }
                .box1-1{
                    width: 1200px;
                    height: 31px;
                    background-color: aqua;
                    margin: 0 auto;
                }
                .box1-1-1{
                    width: 540px;
                    height: 31px;
                    background-color: dimgray;
                    float: left;
                }
                .box1-1-2{
                    width: 600px;
                    height: 31px;
                    background-color: blueviolet;
                    float: right;
                }
                .box2{
                    width: 1200px;
                    height: 150px;
                    background-color: blueviolet;
                    margin: 0 auto;
                }
                .box3{
                    width: 1519.2px;
                    height: 40px;
                    background-color: blue;
                }
                .box4{
                    width: 1200px;
                    height: 520px;
                    background-color: yellow;
                    margin: 0 auto;
                }
                .box4-1{
                    width: 219.6px;
                    height: 487.8px;
                    background-color: darkgoldenrod;
                    float: left;
                }
                .box4-2{
                    width: 760px;
                    height: 479px;
                    background-color: grey;
                    float: left;
                    margin-left: 10px ;
                }
                .box4-3{
                    width: 201.6px;
                    height: 478.6px;
                    background-color: sandybrown;
                    float: right;
                }
                .box5{
                    width: 1200px;
                    height: 6130.9px;
                    background-color: red;
                    margin: 0 auto;
                }
                .box5-1{
                    width: 1200px;
                    height: 31.6px;
                    background-color: snow;
                    margin: 0 auto ;
                }
                .box5-2{
                    width: 1200px;
                    height: 234.8px;
                    background-color: steelblue;
                    margin: 10px auto;
                }
                .box6{
                    width: 1519.2px;
                    height: 219.6px;
                    background-color: aqua;
                }
            </style>
        </head>
        <body>
        <div class="box1">
            <div class="box1-1">
                <div class="box1-1-1"></div>
                <div class="box1-1-2"></div>
            </div>
        </div>
        <div class="box2"></div>
        <div class="box3"></div>
        <div class="box4">
            <div class="box4-1"></div>
            <div class="box4-2"></div>
            <div class="box4-3"></div>
        </div>
        <div class="box5">
            <div class="box5-1"></div>
            <div class="box5-2"></div>
        </div>
        <div class="box6"></div>
        </body>
    </html>
    

    相关文章

      网友评论

          本文标题:基本布局

          本文链接:https://www.haomeiwen.com/subject/zozhqqtx.html