小米商城页面布局(2)

原创 2018-12-16 20:50:20 165
摘要:<!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>
                          <divclass="contentImg" style="background:url(static/images/longAD1.jpg);"></div>
                          <div>手机</div>
                          <div></div>
                          <div style="background:url(static/images/longAD2.jpg);"></div>
                          <div>家电</div>
                          <div></div>
                          <div style="background:url(static/images/longAD3.jpg);"></div>
                          <div>智能</div>
                          <div></div>
                          <div style="background:url(static/images/longAD4.jpg);"></div>            
                  </div>
         </div>
         <!-- 尾部 -->
         <div>
                  <div>底部</div>
         </div>
</body>
</html>
*{padding: 0px;margin: 0px;}
li{list-style: none;}
a{text-decoration: none;color: #ccc;}
.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:500px;background: #ccc;margin: 10px auto;}
/*尾部*/
.footer{width: 1226px;height: 100px;background: #ccc;margin: 10px auto;}

1.png

发布手记

热门词条