美文网首页
基本布局

基本布局

作者: 浮华_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>

相关文章

  • CSS基本布局整理

    前言 css布局是前端开发必须掌握的基本内容,前端学习之css基本布局整理。 基本布局 左右布局 div结构: f...

  • 基本布局

    PC端 盒子模型 定高 定宽 display:inline-block 移动Web 定高,宽度百分比 flex(响...

  • 基本布局

  • 基本布局

  • 基本布局

    传统盒子布局 display:block //每个元素独占一行,自上而下放置text-align:center /...

  • android基础

    布局基本布局 FrameLayout线性布局 LinearLayout相对布局 RelativeLayout绝对布...

  • Android 常见布局

    基本理论 Android六大基本布局分别是:线性布局LinearLayout、表格布局TableLayout、相对...

  • 前端网站5种布局

    前端基本布局分大致5种,table布局,float 布局,absolute布局,flexbox布局,grid布局。...

  • 前端web网站上中(左右)下布局(flex、calc)

    基本布局1: 上中(左右)下布局 效果如下: 基本布局2: 上中(左中右,左、右侧固定)下布局 效果如下:

  • Android 六大基本布局

    1.android 六大基本布局: 线性布局LinearLayou、相对布局RelativeLayout、表格布局...

网友评论

      本文标题:基本布局

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