1. 效果
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