美文网首页
前端—盒子

前端—盒子

作者: Taoqi思 | 来源:发表于2018-10-22 19:38 被阅读0次
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>盒子</title>
    <style type="text/css">
        .box1{
            width: 1100px;
            height: 120px;
            background-color: red;
            margin-bottom: 10px;
            margin: 0 auto;
        *{
            margin: 0;
            padding: 0;
            text-decoration: none;
        }
        .dang{
            width: 230px;
            height: 100px;
            background-color: yellow;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
            }
        .box01{
            width: 20px;
            float:left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box02{
            /*width: 200px;*/
            /*height: 90px;*/
            /*background-color: purple;*/
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box03{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box04{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box05{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box06{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box07{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box08{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }

        .box09{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box10{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box11{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box12{
            margin: 0 auto;
            float: left;
            margin-top: 80px;
            margin-left: 20px;
        }
        .box2{
            width: 1500px;
            height: 120px;
            background-color: blue;
        }
        .box3{
            width: 6000px;
            height: 700px;
            background-color: gold;
        }

    </style>
</head>
<body>
    <div class="box1">
        <div class="dang"></div>
        <div class="box01"><a href="全部商品"></a></div>
        <div class="box02"></div>
        <div class="box03"></div>
        <div class="box04"></div>
        <div class="box05"></div>
        <div class="box06"></div>
        <div class="box07"></div>
        <div class="box08"></div>
        <div class="box09"></div>
        <div class="box10"></div>
        <div class="box11"></div>
        <div class="box12"></div>
    </div>
    <div class="box2"></div>
    <div class="box3"></div>
</body>
</html>

相关文章

  • 前端—盒子

  • 前端盒子

    盒子

  • 前端——盒子

    盒子模型 一个页面我们会分成几个盒子组成的 一个盒子我们会分为以下几个部分:— 内容区(content)— 内边距...

  • 前端box(盒子)

    高度塌陷 1 在文档流中,父元素的高度默认是被子元素撑开的,也就是子元素多高,父元素就多高但是当为子元素设置浮动以...

  • 05-盒子模型

    typora-copy-images-to: media 第01阶段.前端基础.盒子模型 盒子模型(CSS重点) ...

  • 前端页面设计的基础思维:盒子模型

    在前端工程师的眼里,可以说“万物皆盒子”。盒子模型是前端工程师将HTML和CSS结合起来,按照设计稿进行前端页面设...

  • box-sizing属性使用场景

    关键词:布局 盒子模型盒子模型盒子模型在前端开发中有着非常重要的地位。盒子模型的组成由content+paddin...

  • 2021-05-24

    前端面试2021.5.24 1.说一下盒子模型: 答:盒子模型有两种:W3C和IE盒子模型 盒子模型包括margi...

  • 前端盒子模型

    盒子 内容区域设定:width:宽度的设定,height:高度的设定。宽度和高度的设定可以是个体的数值(带单位),...

  • 前端box(盒子嵌套)

    1、盒子模型 一个盒子我们会分成几个部分:内容区(content)内边距(padding)边框(border)外边...

网友评论

      本文标题:前端—盒子

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