简易的盒子模型

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            body{
                margin: 0 auto;/* 上面是0,左右居中...上右下左 */
                width: 1200px;/* 将此区域居中 */
            }
            /* 设置顶部区块 */
            .bTop{
                height: 70px;
                width: 1200px;
                background-color: #AAFFFF;
            }
            .bTopbotton{
                height: 30px;
                width: 1200px;
                background-color: #000000;
            }
            /* 设置中间区块 */
            .bMid{
                height: 400px;
                width: 1200px;
                background-color: cyan;
            }
            /* 设置底部区块 */
            .bBotton{
                height: 200px;
                width: 1200px;
                background-color: lightblue;
            }
            /* 设置中间区块左边部分 */
            .bMidleft{
                height: 400px;
                width: 200px;
                background-color: #00ff00;
                float: left;
                
            }
            /* 设置中间区块中部部分 */
            .bMidmid{
                height: 400px;
                width: 800px;
                background-color: bisque;
                float: left;
            }
            /* 设置中间区块右边部分 */
            .bMidright{
                height: 400px;
                width: 200px;
                background-color: deepskyblue;
                float: left;
            }
        </style>
    </head>
    <body>  <div class="bTop">这是顶部</div>
            <div class="bMid">
                <div class="bMidleft">这是中左</div>
                <div class="bMidmid">这是中</div>
                <div class="bMidright">这是中右</div>
            </div>
            <div class="bBotton">这是底部</div>
        </div>
    </body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值