小米商城首页布局分级(4)

原创 2018-12-17 10:34:23 344
摘要:<!DOCTYPE html> <html> <head>          <meta charset="utf-8">         &
<!DOCTYPE html>
<html>
<head>
         <meta charset="utf-8">
         <title>小米商城首页</title>
         <link rel="shortcut icon" type="image/x-icon" href="static/images/footlogo.png" >
         <link rel="stylesheet" type="text/css" href="static/font-awesome/css/font-awesome.css">
         <link rel="stylesheet" type="text/css" href="static/css/style.css">
</head>
<body>
         <!-- 头部 -->
         <div>
                  <div></div>
         </div>
         <!-- 主体部分 -->
         <div>
                  <div>
                          <div></div>
                          <div>
                                   <div></div>
                                   <div></div>
                          </div>
                          <div></div>
                          <div>
                                   <div ></div>
                                   <div style="background:url(static/images/midAD1.jpg); margin-right: 13px;"></div>
                                   <div style="background:url(static/images/midAD2.jpg);margin-right: 13px;"></div>
                                   <div style="background:url(static/images/midAD3.jpg);"></div>
                          </div>
                          <div></div>
                          <!-- 小米闪购 -->
                          <div>
                                   <h2>小米闪购</h2>
                                   <div style="margin-right: 12.7px; border-top:1px solid #E53935; "></div>
                                   <div style="margin-right: 12.7px; border-top:1px solid #FFAC13;"></div>
                                   <div style="margin-right: 12.7px; border-top:1px solid #83C44E;"></div>
                                   <div style="margin-right: 12.7px; border-top:1px solid #2196F3;"></div>
                                   <div style="border-top:1px solid #E53935;"></div>
                          </div>
                          <div></div>
                          <div style="background:url(static/images/longAD1.jpg);"></div>
                          <div>手机</div>
                          <div>
                                   <div></div>
                                   <div>
                                            <div style="margin-right:12.7px;"></div>
                                            <div style="margin-right:12.7px; "></div>
                                            <div style="margin-right:12.7px; "></div>
                                            <div ></div>
                                            <div style="margin-right:12.7px; margin-top: 12.7px;"></div>
                                            <div style="margin-right:12.7px; margin-top: 12.7px;"></div>
                                            <div style="margin-right:12.7px; margin-top: 12.7px;"></div>
                                            <div style="margin-top: 12.7px;"></div>
                                   </div>
                          </div>
                          <div style="background:url(static/images/longAD2.jpg);"></div>
                          <div>家电</div>
                          <div>
                                   <div style="background: url(static/images/buy/智能AD1.jpg);margin-right:12.7px;"></div>
                                   <div style="margin-right:12.7px;"></div>
                                   <div style="margin-right:12.7px;"></div>
                                   <div style="margin-right:12.7px;"></div>
                                   <div ></div>
                                   <div style="background: url(static/images/buy/智能AD2.jpg);margin-right:12.7px;margin-top: 12.7px;"></div>
                                   <divstyle="margin-right:12.7px; margin-top: 12.7px;"></div>
                                   <div style="margin-right:12.7px; margin-top: 12.7px;"></div>
                                   <div style="margin-right:12.7px; margin-top:12.7px;"></div>
                                   <divstyle=" margin-top: 12.7px">
                                            <div></div>
                                            <div></div>
                                   </div>
                          </div>
                          <div style="background:url(static/images/longAD3.jpg);"></div>
                          <div>智能</div>
                          <div>
                                   <div style="background: url(static/images/buy/家电AD1.jpg);margin-right:12.7px;"></div>
                                   <div style="margin-right:12.7px;"></div>
                                   <div style="margin-right:12.7px;"></div>
                                   <div style="margin-right:12.7px;"></div>
                                   <div ></div>
                                   <div style="background: url(static/images/buy/家电AD2.jpg);margin-right:12.7px;margin-top: 12.7px;"></div>
                                   <divstyle="margin-right:12.7px; margin-top: 12.7px;"></div>
                                   <div style="margin-right:12.7px; margin-top: 12.7px;"></div>
                                   <div style="margin-right:12.7px; margin-top:12.7px;"></div>
                                   <divstyle=" margin-top: 12.7px">
                                            <div></div>
                                            <div></div>
                                   </div>
                          </div>
                          <div style="background:url(static/images/longAD4.jpg);"></div>            
                  </div>
         </div>
         <!-- 尾部 -->
         <div>
                  <div>底部</div>
         </div>
</body>
</html>
.clear{clear: both;}
/*头部*/
.header{width: 100%;height: 40px;background: #000;}
.menu{width:1226px;height: 40px; background:#ccc;margin:0px auto;cursor:pointer;}
/* 主体部分 */
.content{width: 1226px;margin: 10px auto;}
.contentMenu{height:90px;background: #ccc;margin: 10px auto;}
.contentPic{margin: 10px auto;}
.contentPic_l{width: 246px;height: 480px;background: #ccc;float: left;}
.contentPic_r{width: 980px;height:480px;background: blue;float: left;}
.contentPic_ul{margin: 10px auto;}
.contentPic_ul_1{width:235px;height: 170px;background: #5F5750;margin-right: 13px; float: left;}
.contentPic_ul_0{width:317px;height: 170px;float: left;}
/*小米闪购*/
.contentShop{margin: 10px auto;}
.contentShop_1{width: 235px;background:#ccc;height: 340px;float: left;}
 
.contentImg{height:119px;background: #ccc;margin: 10px auto;}
/*手机*/
.contentUL{height:80px;background: #ccc;margin: 10px auto;}
.contentPhone{height:614px;/* background: #ccc; */margin: 10px auto;}
.contentPhone_l{width: 234px;height: 614px;background: url(../images/buy/手机AD.jpg);float: left;margin-right: 12px;}
.contentPhone_r{width:980px; height: 614px;float: left; }
.contentPhone_r div{width: 235px;height: 300px;background: #ccc;float:left;}
/* 家电  智能 */
.contentPhone_0,.contentPhone_1{width: 235px;height: 300px;background: #ccc;float:left;}
.contentPhone_2{float:left;}
.contentPhone_2_t,.contentPhone_2_d{width: 235px;height: 145px;background: #ccc;}
.contentPhone_2_d{margin-top: 10px;}
/*尾部*/
.footer{width: 1226px;height: 100px;background: #ccc;margin: 10px auto;}

小米1.png小米2.png小米3.png

发布手记

热门词条