摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城</title>  
<!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></div> --> <!-- 小米闪购 --> <div> <h1>小米闪购</h1> <div style="background: url(static/images/midAD1.jpg);margin-right: 12px;border-top: solid 1.5px red;"></div> <div style="background: url(static/images/midAD1.jpg);margin-right: 12px;border-top: solid 1.5px pink;"></div> <div style="background: url(static/images/midAD1.jpg);margin-right: 12px;border-top: solid 1.5px green;"></div> <div style="background: url(static/images/midAD1.jpg);margin-right: 12px;border-top: solid 1.5px orange;"></div> <div style="background: url(static/images/midAD1.jpg);border-top: solid 1.5px yellow;"></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;border-top: solid 1.5px orange;"></div> <div style="margin-right: 12.7px;border-top: solid 1.5px orange;"></div> <div style="margin-right: 12.7px;border-top: solid 1.5px orange;"></div> <div style="border-top: solid 1.5px orange;"></div> <div style="margin-right: 12.7px;border-top: solid 1.5px orange;margin-top: 12.7px"></div> <div style="margin-right: 12.7px;border-top: solid 1.5px orange;margin-top: 12.7px"></div> <div style="margin-right: 12.7px;border-top: solid 1.5px orange;margin-top: 12.7px"></div> <div style="border-top: solid 1.5px orange;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> <div> <div>网页底部</div> </div> <a href="">nihao</a> </body> </html>
*{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-color: #ccc;width:1226px;height: 40px;margin: 0px auto;} /*主体部分样式*/ .content{width: 1226px;margin: 0px auto;} .contentMenu{background: #bbb;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: pink;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: #bbb;height: 120px;margin: 10px auto;} .contentUl{background: #bbb;height: 100px;margin: 10px auto;} .contentDsp{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;background: pink;float: left;} .contentDsp_0,.contentDsp_1{height: 300px;width: 235px;background: pink;float: left;} .contentDsp_2{float: left;} .contentDsp_1_t,.contentDsp_1_b{height: 145px;width: 235px;background: pink;} .contentDsp_1_b{margin-top: 10px;} /*网页底部样式*/ .footer{background: #ccc;width: 1226px;height: 200px;margin: 10px auto;}
谢谢老师批改,辛苦了