美文网首页
作业1-简单项目布局

作业1-简单项目布局

作者: crx彭彭 | 来源:发表于2018-11-04 19:18 被阅读0次

布局

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>简单布局</title>
    <style type="text/css">
        *{
            margin: 0px;
            padding: 0px;
        }
        .header{
            height: 50px;
            background-color: blue;

        }
        .next{
            height:100px;
            background-color: white;

        }
        .next1{
            height: 470px;
            background-color: pink;
            margin: 30px auto

        }
        .next2{

            width: 1200px;
            height: 700px;
            background-color: white;
            margin: 0px auto;
            margin: 20px auto;

        }
        .next21{

            width:1200px;
            height: 450px;
            background-color: white;
            margin: 20px auto

        }
        .next211{
            width: 800px;
            height:450px;
            background-color: yellow;

            float: left;

        }
        .next212{
            width: 400px;
            height: 450px;
            background-color: olive;

            float: left;

        }
        .next22{
            width: 1200px;
            height:250px;
            background-color:white; 
            float:left;

        }
        .next221{
            width: 400px;
            height: 250px;
            background-color:orange;
            float: left; 

        }
        .next222{
            width: 400px;
            height: 250px;
            background-color:black;
            float: left; 

        }
        .next223{
            width: 400px;
            height: 250px;
            background-color:gray;
            float: left; 

        }
        .center{
            width: 1200px;
            height: 800px;
            background-color:purple; 
            margin: 0px auto;
            margin: 20px auto;

        }
        .center1{
            width: 1200px;
            height: 100px;
            background-color:white;

        }
        .center2{
            width: 1200px;
            height: 350px;
            background-color:white;

        }
        .center21{

            width: 300px;
            height: 350px;

            background-color:red;
            float: left;

        }
        .center22{
            width: 300px;
            height: 350px;
            background-color:green;
            float: left;  

        }
        .center23{
            width: 300px;
            height: 350px;
            background-color:orange;
            float: left;

        }
        .center24{
            width: 300px;
            height: 350px;
            background-color:blue;
            float: left;

        }

        .center3{
            width: 1200px;
            height: 350px;
            background-color: white;

        }
        .center31{
            width: 300px;
            height: 350px;
            background-color: black;
            float: left;  

        }
        .center32{
            width: 300px;
            height: 350px;
            background-color: gray;
            float: left;  

        }
        .center33{
            width: 300px;
            height: 350px;
            background-color: pink;
            float: left;  
        }
        .center34{
            width: 300px;
            height: 350px;
            background-color: brown;
            float: left;  

        }
    </style>
</head>
<body>
    <div class="header">

    </div>
    <div class='next'></div>
    <div class='next1'></div>
    <div class='next2'>
        <div class='next21'>
            <div class="next211"></div>
            <div class="next212"></div>
        </div>
        <div class='next22'>
            <div class='next221'></div>
            <div class="next222"></div>
            <div class="next223"></div>
        </div>
    </div>
    <div class="center">
        <div class="center1"></div>
        <div class="center2">
            <div class="center21"></div>
            <div class="center22"></div>
            <div class="center23"></div>
            <div class="center24"></div>
        </div>
        <div class="center3">
            <div class="center31"></div>
            <div class="center32"></div>
            <div class="center33"></div>
            <div class="center34"></div>
        </div>
    </div>

</body>
</html>

12457501-c6a224805adffb1d.png 12457501-cb4fc146767a3056.png

相关文章

  • 作业1-简单项目布局

    布局

  • 项目简单布局

    布局

  • 作业 项目布局

  • 04作业--项目布局

    代码 效果

  • 客厅装修建议

    客厅布局建议1-遵循简单实用的原则 对于客厅区域的布局,不要忽视窗户带来的光源,这样会失去良好的光线。床单和毯子是...

  • css布局

    CSS布局 作业1 作业1使用float布局作业1使用flex布局 作业2 作业2使用float布局作业2使用fl...

  • 日常布局css

    一、如何实现子元素左右等高布局 grid布局 最简单 flex布局flex中的伸缩项目默认都拉伸为父元素的高度,也...

  • iOS 半圆/半边摩天轮效果

    先上效果图 gif 以前的项目用过圆形布局,这次的项目是半圆,我想到的最简单的办法就是弄个圆形布局,然后坐标右移,...

  • xml生成view原理

    项目中我们经常使用以下代码把布局文件转换成view 下面我们简单来看看布局生成view的原理我们以解析下面这个布局...

  • 微信小程序设置控件权重

    项目中最常用的两种布局方式,水平布局和垂直布局,在微信小程序中实现起来也比较简单。 1.横向水平布局: 实现水平布...

网友评论

      本文标题:作业1-简单项目布局

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