abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城</title> <link rel="shortcut icon" type="image
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城</title> <link rel="shortcut icon" type="image/x-icon" href="static/img/footlogo.png"><!-- 页面上的图标 --> <link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" 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/img/midAD1.jpg); margin-right: 13px;"></div> <div style="background: url(static/img/midAD2.jpg); margin-right: 13px;"></div> <div style="background: url(static/img/midAD3.jpg);"></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 red"></div> <div style="margin-right: 12.7px; border-top: 1px solid blue"></div> <div style="border-top: 1px solid"></div> </div> <div></div> <div style="background: url(static/img/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/img/longAD2.jpg);"></div> <div>智能</div> <div> <div style="margin-right: 12.7px; background: url(static/img/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;background: url(static/img/buy/智能AD1.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 class="contentPhone_2 " style="margin-top: 12.7px;"> <div></div> <div></div> </div> </div> <div style="background: url(static/img/longAD3.jpg);"></div> <div>家电</div> <div> <div style="margin-right: 12.7px; background: url(static/img/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;background: url(static/img/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 class="contentPhone_2 " style="margin-top: 12.7px;"> <div></div> <div></div> </div> </div> <div style="background: url(static/img/longAD4.jpg);"></div> <div></div> </div> </div> <!-- 底部 --> <div> <div> <div> <div> <a href="#"><i class=" fa fa-cloud-upload"></i>预约维修服务</a><span></span> <a href="#"><i class="fa fa-life-ring" ></i>7天无理由退货</a><span></span> <a href="#"><i class="fa fa-paper-plane"></i>15天免费换货</a><span></span> <a href="#"><i class="fa fa-paper-plane"></i>满150元包邮</a><span></span> <a href="#"><i class="fa fa-paper-plane"></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> cool-666-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: 10px;"> <img src="static/img/footlogo.png" alt=""> </div> <div style="margin-right: 10px;"> <div class="footer_bottom_li_a "> <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<span></span></li> </ul> </div> <div> <a href="">©mi.com 京ICP证110507号</a> <a href="">京ICP备10046444号</a> <a href="">京公网安备11010802020134号</a> <a href="">京网文[2017]1530-131号 </a> </br> 违法和不良信息举报电话:185-0130-1238,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试 </div> </div> </div> <div> <img src="static/img/footericon1.png" alt="" style="margin-right: 10px;"> <img src="static/img/footericon2.png" alt="" class="" style="margin-right: 10px;"> <img src="static/img/footericon3.png" alt="" class=""style="margin-right: 10px;"> <img src="static/img/footericon4.png" alt="" class=""style="margin-right: 10px;"> <img src="static/img/footericon5.png" alt="" class=""style="margin-right: 10px;"> </div> <div> 探索黑科技,小米为发烧而生! </div> </div> </div> </body> </html>
*{margin: 0px; padding: 0px;} /*头部样式*/ li{list-style: none;} a{text-decoration: none;color: #ccc; cursor: pointer;} .clear{clear: both; } .header{ width: 100%; height: 40px; background:#333; } .menu{ background: #ccc; width: 1226px; height: 40px; margin: 0px auto; } /* 主体样式*/ .content{ width: 1226px; margin: 10px auto; } .contentMenu{ background: #ccc; margin: 10px auto; height: 90px; } .contentPic{ background: #ccc; margin: 10px auto; height: 480px; } .contentPic_l{ width: 246px; height: 480px; background: #ccc; float: left; } .contentPic_r{ width: 980px; height: 480px; background: blue; float: right; } .contentPic_ul{ margin: 10px auto; height: 180px; } .contentPic_ul_1{ width: 235px; background: #5f5759; height: 180px; margin-right: 10px; float: left; } .contentPic_ul_0{ width: 317px; background: #5f5759; height: 170px; float: left; } /*小米闪购*/ .contentShop{ margin: 10px auto; height: 340px; } .contentShop_1{ width: 235px; background: #ccc; float: left; height: 340px; } .contentImg{ background: #ccc; margin: 10px auto; height: 100px; } .contentUL{ background: #ccc; margin: 10px auto; height: 80px; } .contentPhone{ margin: 10px auto; height: 614px; } .contentPhone_l{ width: 234px; height:614px; background: url(../img/buy/手机AD.jpg); float: left; margin-right: 12px; } .contentPhone_r{ width: 980px; height:614px; float: left; } .contentPhone_r div{ height: 300px; width: 235px; background: #ccc; float: left; } .contentPhone_1,.contentPhone_0{ height: 300px; width: 235px; background: #ccc; float: left; } .contentPhone_1_t,.contentPhone_1_d{ height: 145px; width: 235px; background: #ccc; } .contentPhone_1_d{ margin-top: 10px; } .contentPhone_2{ float: left; } /* 网页底部*/ .footer{ width: 1226px; background: #cc; margin: 20px auto; } .footer_top_li_1{ width: 1226px; height: 80px; /*background: #ccc*/; 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,.footer_top_li_1 i:hover{ color: #ff6700; } .footer_top_li_1 a i{ font-size: 20px; color: #616161; margin-right: 10px; } .footer_top_li_1 span{ font-size: 20px; 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{ display: block; float: left; width: 160px; } .footer_top_li_a dt{ font-size: 14px; line-height: 14px; color: #424242; margin-bottom: 26px; } .footer_top_li_a dd{ font-size: 12px; line-height: 12px; 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; } .telephone{ columns: #ff6700; color: #ff6700; margin: 0 0 5px; font-size: 22px; line-height: 22px; } .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; background: #fff; margin-top: 15px; } .footer_top_li_a .connect button:hover{ background: #ff6700; color: #fff; } .footer_bottom_li_1,.footer_bottom_li_2,.footer_bottom_li_3{ float: left; } .footer_bottom_li_4{ clear: left; margin-top: 15px; text-align: center; font-size: 24px; color: #ccc; } .footer_bottom_li_a{ height: 19px; width: 640px; } .footer_bottom_li_a li{ height: 19px; font-size: 12px; float: left; color: #757575; } .footer_bottom_li_a li span{ height: 8px; color: #757575; margin: 3px 3px; border-left: 1px solid #b0b0b0 } .footer_bottom_li_b{ width: 640px; color: #b0b0b0; font-size: 12px; } .footer_bottom_li_b a:hover,.footer_bottom_li_a li:hover{ color: #ff6700; } .footer_bottom_li_3{ float: right; } .footer_bottom_li_3 img{ width: 83px; float: left; }
Correcting teacher:灭绝师太Correction time:2018-11-15 09:02:19
Teacher's summary:完成的不错!有时候布局也可以不按照老师的方式来,用自己的方法试试