173. div 页面分割

1. 效果

fbfa90017180c6d43568c84e9da38100dbd.jpg

2. html代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>页面分割</title>
<style>
    *{
        margin:0;
        padding:0;
        list-style:none;
    }
    html,body{
        width:100%;
        height:100%;
        //background-color:#cfcfcf;
    }
    .top_Box{
            width:100%;
            height:298px;
            margin:auto;
        }
    .ones,.twos{
        display:inline-block;
        vertical-align:top;
    }
    /*870*436*/
    .top_Box .ones{
        width:800px;
        height:298px;
        border:1px solid  #262C3E;
        // background-color:#0D1428;
    }
    /*655*436*/
    .top_Box .twos{
        width:462px;
        height:100%;
        border:1px solid #262C3E;
        // background-color:#0D1428;
        margin-left:14px;
    }
    
    .bottom_Box{
        width:100%;
        height:350px;
        margin-top:14px;
    }
    .fasts,.centers,.lasts{
        display:inline-block;
        vertical-align:top;
    }
    .bottom_Box .fasts{
        width:483px;
        height:100%;
        border:1px solid #262C3E;
    //    background-color:#0D1428;
    }
    .bottom_Box .centers{
        width: 298px;
        height:100%;
        border:1px solid #262C3E;
        // background-color:#0D1428;
        margin-left:14px;
    }
    .bottom_Box .lasts{
        width:462px;
        height:100%;
        border:1px solid #262C3E;
        // background-color:#0D1428;
        margin-left:14px;
    }
    .bottom_contes{
        width:1292px;
        margin:0px auto;
        color:white;
    }
</style>

<body>
        <h2 align="center">页面分割</h2>
        <br />
    <div class="hudong bottom_contes">
        <div class="top_Box">
            <div class="ones" id="main"><font style="color: red" >11111</font></div>
            <div class="twos"><font style="color: red" >22222</font></div>
        </div>
        
        <div class="bottom_Box">
            <div class="fasts"><font style="color: red" >33333</font></div>
            <div class="centers"><font style="color: red" >44444</font></div>
            <div class="lasts"><font style="color: red" >55555</font></div>
        </div>
    </div>

</body>


</html>

 

转载于:https://my.oschina.net/springMVCAndspring/blog/1921711

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值