摘要:*{margin: 0px;padding:0px;}li{list-style: none;}a{text-decoration: none;color:#ccc;cursor: pointer;}.clear{clear: both;}/*头部样式*/.header{background: #333;width:100%;height: 40px;}.menu{background: #ccc
*{margin: 0px;padding:0px;} li{list-style: none;} a{text-decoration: none;color:#ccc;cursor: pointer;} .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{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{height:180px;margin: 10px auto;} .contentPic_ul_1{width:235px;background:#5F5750;height:170px;margin-right: 13px;float:left;} .contentPic_ul_0{width:317px;height:170px;float:left;} /*小米闪购*/ .contentShop{height:340px;margin: 10px auto;} .contentShop_1{width:235px; height:340px; background:#ccc; float:left;} .contentImg{background: #ccc;height:100px;margin: 10px auto;} .contentUL{background: #ccc;height:80px;margin: 10px auto;} .contentPhone{height: 614px;margin: 10px auto;} .contentPhone_l{height: 614px;width:234px;background: url(../images/buy/手机AD.jpg);float:left;margin-right: 12px;} .contentPhone_r{height: 614px;width:980px;float: left;} .contentPhone_r div{height: 300px;width:235px;float: left;background:#ccc;} .contentPhone_0,.contentPhone_1{height: 300px;width:235px;float: left;background:#ccc;} .contentPhone_2{float:left;} .contentPhone_1_t,.contentPhone_1_d{height: 145px;width:235px;background: #ccc;} .contentPhone_1_d{margin-top: 10px;} /*网页底部*/ .footer{width:1226px;margin: 10px auto;} .footer-top_li_1{width:1226px; height:80px; line-height: 80px; text-align: center;} .footer-top_li_1 a{font-size:16px; color:#616161;font-weight: 300;} .footer-top_li_1 a:hover{color:#ff6700;} .footer-top_li_1 a i{font-size:16px; margin-right: 10px;} .footer-top_li_1 span{font-size:16px; color:#616161;border-left:1px solid #e0e0e0;margin:0px 56px;} .separate{width:1226px;border-bottom: 1px solid #e0e0e0;display:block;} .footer-top_li_2{width:1226px;height:100px;margin:40px 0px} .footer-top_li_a dl{float:left;display:block;width:160px;} .footer-top_li_a dt{font-size: 14px;line-heght:14px;color: #424242;margin-bottom: 26px;} .footer-top_li_a dd{font-size: 12px;line-heght:18px;color: #424242;margin-top: 10px;} .footer-top_li_a dd a{color:#757575;} .footer-top_li_a dd a:hover{color:#ff6700;} .footer-top_li_a .connect{width:258px;height:112px;border-left:1px solid #e0e0e0;float:right;text-align: center;} .footer-top_li_a .connect .telephone{color:#ff6700;margin: 0px 5px; font-size: 22px; line-height: 22px;} .footer-top_li_a .connect .time{color:#616161;margin: 0px 16px; font-size: 12px;} .footer-top_li_a .connect button{width:118px;height:28px;font-size: 12px;line-height: 28px;border:1px solid #ff6700;color:#ff6700;background: #fff;margin-top: 20px;} .footer-top_li_a .connect button:hover{background: #ff6700;color:#fff;} <!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.min.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> <h1>小米闪购</h1> <div style="margin-right: 12.7px; border-top:1px solid #F29C9A;"></div> <div style="margin-right: 12.7px; border-top:1px solid #FFD589;"></div> <div style="margin-right: 12.7px; border-top:1px solid #C1E1A6;"></div> <div style="margin-right: 12.7px; border-top:1px solid #90CAF9;"></div> <div style="border-top:1px solid #EF9997;"></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="margin-right: 12.7px; background:url(static/images/buy/智能AD1.jpg)"></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; background:url(static/images/buy/智能AD2.jpg)"></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> </div> </div> <div style="background:url(static/images/longAD3.jpg) "></div> <div>家电</div> <div> <div style="margin-right: 12.7px; background:url(static/images/buy/家电AD1.jpg)"></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; background:url(static/images/buy/家电AD2.jpg)"></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> </div> </div> <div style="background:url(static/images/longAD4.jpg) "></div> <div></div> </div> </div> <!--底部--> <div> <div> <div> <div> <a href="#"><i class="fa fa-wrench"></i>预约维修家电</a><span></span> <a href="#"><i class="fa fa-rotate-right"></i>7天无理由退货</a><span></span> <a href="#"><i class="fa fa-refresh"></i>15天免费换货</a><span></span> <a href="#"><i class="fa fa-gift"></i>满150元包邮</a><span></span> <a href="#"><i class="fa fa-map-marker"></i>520余家售后网点</a> </div> <span></span> <div> <div> <dl> <dt>帮助中心</dt> <dd><a href="">账户管理</a></dd> <dd><a href="">购物指南</a></dd> <dd><a href="">订单操作</a></dd> </dl> <dl> <dt>服务支持</dt> <dd><a href="">售后政策</a></dd> <dd><a href="">自助服务</a></dd> <dd><a href="">相关下载</a></dd> </dl> <dl> <dt>线下门店</dt> <dd><a href="">小米之家</a></dd> <dd><a href="">服务网点</a></dd> <dd><a href="">授权体验店</a></dd> </dl> <dl> <dt>关于小米</dt> <dd><a href="">了解小米</a></dd> <dd><a href="">加入小米</a></dd> <dd><a href="">投资者关系</a></dd> </dl> <dl> <dt>关注我们</dt> <dd><a href="">新浪微博</a></dd> <dd><a href="">官方微博</a></dd> <dd><a href="">联系我们</a></dd> </dl> <dl> <dt>特色服务</dt> <dd><a href="">F码通道</a></dd> <dd><a href="">礼物码</a></dd> <dd><a href="">防伪查询</a></dd> </dl> <div> <p>Feir-520-1314</p> <p>周一至周日 8:00-18:00<br>(仅收市话费)</p> <button><span class="fa fa-commenting"></span>联系客服</button> </div> </div> </div> <div></div> </div> <div> <div style="margin-right: 15px;"> <img src="static/images/footlogo.png" alt=""> </div> <div style="margin-right: 50px;"> <div> <ul> <li>小米商城<span></span></li> <li>MIUI<span></span></li> <li>米家<span></span></li> <li>米聊<span></span></li> <li>多看<span></span></li> <li>游戏<span></span></li> <li>路由器<span></span></li> <li>米粉卡<span></span></li> <li>政企服务<span></span></li> <li>小米天猫店<span></span></li> <li>隐私政策<span></span></li> <li>问题反馈<span></span></li> <li>Select Region</li> </ul> </div> <div> <a href="">©mi.com</a> 京ICP证110507号 <a href="">京ICP备10046444号</a> <a href="">京公网安备11010802020134号</a> <a href="">京网文[2014]0059-0009号</a> <br> 违法和不良信息举报电话:185-0130-1238,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试 </div> </div> <div> <img src="static/images/footericon1.png" alt="" style="margin-right: 10px;"> <img src="static/images/footericon2.png" alt="" style="margin-right: 10px;"> <img src="static/images/footericon3.png" alt="" style="margin-right: 10px;"> <img src="static/images/footericon4.png" alt="" style="margin-right: 10px;"> <img src="static/images/footericon5.png" alt=""> </div> <div> 探索黑科技,小米为发烧而生! </div> </div> </div> </div> </body> </html>
总结:通过做商城页面的底部,对布局安排有了一个基本的认识,感觉页面布局几乎都是div块,然后div块里做具体的操作。代码不知道怎么高亮提交,只能这样粘贴了。结果图已经提交。