简单布局,H5,C3还没有学习

原创 2018-11-24 20:24:59 245
摘要:<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>小米商城</title> <link rel="stylesheet" type="text/css" href=&
<!DOCTYPE html>
<html>
<head>
 <meta charset="UTF-8">
 <title>小米商城</title>
 <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-left: 12px;"></div>
                     <div style="background: url(static/images/midAD2.jpg); margin-left: 12px;"></div>
                     <div style="background: url(static/images/midAD3.jpg);"></div>
               </div> 
                         <div></div>
           <div>
              <h1>小米闪购</h1>
               <div style="margin-right: 12.7px;border-top: 1px solid red"></div>
               <div style="margin-right: 12.7px;border-top: 1px solid blue"></div>
               <div style="margin-right: 12.7px;border-top: 1px solid pink"></div>
               <div style="margin-right: 12.7px;border-top: 1px solid #ccc"></div>
               <div style="border-top: 1px solid red"></div>
           </div>
           <div></div>           <div style="background: url(static/images/longAD1.jpg);"></div>           <div>手机</div>
           <div>
                <div style="background: url();"></div>
                <div class="contentPhone_right ">
                      <div style="background: url();margin-right: 12.7px;"></div>
                      <div style="background: url();margin-right: 12.7px;"></div>
                      <div style="background: url();margin-right: 12.7px;"></div>
                      <div style="background: url();"></div>
                      <div style="background: url();margin-right: 12.7px;margin-top:12.7px;"></div>
                      <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                      <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                      <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                </div>
          </div>
          <div></div>            <div style="background: url(static/images/longAD2.jpg);"></div>
           <div>智能
                  
           </div>
           <div>
           <div style="background: url();margin-right: 12.7px;"></div>
                  <div style="background: url();margin-right: 12.7px;"></div>
                  <div style="background: url();margin-right: 12.7px;"></div>
                  <div style="background: url();margin-right: 12.7px;"></div>
                  <div style="background: url();"></div>
         <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;">
                       <div style="background: url();"></div>
                       <div style="background: url();margin-top: 10px;"></div>
                  </div>
           </div>
           <div></div>            <div style="background: url(static/images/longAD3.jpg);"></div>
            <div>家电</div>
            <div>
            <div style="background: url();"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
           <div style="background: url();"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-top:12.7px;margin-right: 12.7px;"></div>
                  <div style="background: url();margin-right: 12.7px;margin-top:12.7px;">
                       <div style="background: url();"></div>
                       <div style="background: url();margin-top: 10px;"></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;} 
a{text-decoration: none;color: #ccc;cursor: pointer;}
li{list-style: none;}
.clear{clear: both;}
/*头部样式*/
.header{background: #333;width: 100%;height: 40px;}
.menu{background: #ccc;width: 1226px;height: 40px;margin: 0px auto;}
/* 主体部分样式 */
.content{width: 1226px; margin: 0px auto;}
.contentMenu{background: #ccc;height: 90px; margin: 10px auto;}
/*contentPic部分*/
.contentPic{height: 90px;margin: 10px auto;}
.contentPic_left{background: #ccc;height: 90px; width: 235px;float: left; }
.contentPic_right{background: blue;height: 90px; width: 978px;float: right; }
/*contentPic_ul部分*/
.contentPic_ul{height: 180px;margin: 10px auto;}
.contentPic_ul_left{background: #ccc;height: 170px; float: left; width:235px ;}
.contentPic_ul_right{height: 170px; float: right; width: 317px;}
/* 小米闪购*/
 .contentShow{height:340px; margin: 10px auto;}
.contentShow_left{background: #ccc;width:235px;height: 340px;float: left; }
.contentImg{background: #ccc;height: 110px; margin: 10px auto;}
.contentUl{background: #ccc;height: 100px; margin: 10px auto;}
.contentPhone{height: 614px; margin: 10px auto;}
.contentPhone_left{height: 614px;width: 234px;float: left;margin-right: 12px;}
.contentPhone_right{height: 614px;width: 988px;float: left;}
.contentPhone_right_PhoneInfo{height: 600px;width: 235px;background: #ccc;float: left;}
.contentPhone_left_one,.contentPhone_left_twe{height: 300px;width: 235px;background: #ccc;float: left;}
.contentPhone_left_twe_one{width: 235px;height: 145px;background: #ccc;float: left;}
/* 尾部样式 */
.footer{background: #ccc;width: 1226px;height: 100px;margin: 10px auto;}


发布手记

热门词条