网页布局小练习

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .tb{
            width: 970px;
            height: 590px;
        }
        *{
            margin: 0 auto;
            padding: 0px;
        }
        .oiv1{
            width: 970px;
            height: 103px;
        }
        .oiv2{
            margin-top: 10px;
        }
        .oiv3{
            width: 310px;
            height: 435px;
            background-color: darkorange;
            float: left;
        }
        .qw{
            float: right;
            margin-left: 10px;
        }
        .oiv4{
            width: 190px;
            height: 400px;
            float: right;
            background-color: violet;
        }
        .ovi5{
            width: 450px;
            height: 400px;
            float: left;

        }
        .oiv6{
            width: 650px;
            height: 25px;
            background-color: forestgreen;
            margin-top: 410px;
        }
        .oiv7{
            height: 35px;
            margin-top: 455px;
            background-color: #380cb0;
        }
        .box1{
            width: 277px;
            height: 103px;
            background-color: red;
            float: left;
        }
        .box2{
            float: right;
        }
        .box3{
            height: 240px;
            background-color: cornflowerblue;
        }
        .box4{
            height: 110px;
            margin-top: 10px;
            background-color: cornflowerblue;
        }
        .box5{
            height: 30px;
            margin-top: 10px;
            background-color: cornflowerblue;
        }
        .z1{
            width: 137px;
            height: 49px;
            background-color: chartreuse;
            margin-right: 0px;
            margin-bottom: 8px;
        }
        .z2{
            width: 679px;
            height: 46px;
            background-color: chartreuse;
        }
    </style>
</head>
<body>
<div class="tb">
<div class="oiv1">
    <div class="box1"></div>
    <div class="box2">
        <div class="z1"></div>
        <div class="z2"></div>
    </div>
</div>
<div class="oiv2">
    <div class="oiv3"></div>
    <div class="qw">
    <div class="oiv4"></div>
    <div class="ovi5">
        <div class="box3"></div>
        <div class="box4"></div>
        <div class="box5"></div>
    </div>
    <div class="oiv6"></div>
    </div>
</div>
<div class="oiv7"></div>
</div>![顶顶顶顶](h111ttps://img-blog.csdnimg.cn/20190226153822552.png?x-oss-111process=image/watermark,type_ZmFuZ3poZW511naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzY5MzIxNg==,size_16,color_FFFFFF,t_70)
</body>
</html>!
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值