摘要:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>小米商城</title><link rel="icon" type="image/x-icon" href="images/footlogo
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>小米商城</title>
<link rel="icon" type="image/x-icon" href="images/footlogo.png">
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/javascript" href="js/jquery-3.3.1.js">
</head>
<body>
<div>
<div>导航div</div>
</div>
<div>
<div>
<div>主体导航</div>
<div>
<div></div>
<div></div>
</div>
<div></div>
<div>
<div></div>
<div style="background:url(images/midAD1.jpg)"></div>
<div style="background:url(images/midAD2.jpg)"></div>
<div style="background:url(images/midAD3.jpg); margin-right:0px;"></div>
</div>
<div></div>
<!-- 小米闪购 -->
<div>
<h1 style="margin:20px 0px;">小米闪购</h1>
<div style="border-top:1px solid #E53935; background-color:#F1EDED;"></div>
<div style="border-top:1px solid #FFAC13;"></div>
<div style="border-top:1px solid #83C44E;"></div>
<div style="border-top:1px solid #2196F3"></div>
<div style="margin-right:0px;border-top:1px solid #E53935;"></div>
</div>
<div></div>
<div style="background:url(images/longAD1.jpg)"></div>
<div>手机</div>
<div>
<div style="background:url(images/buy/手机AD.jpg")></div>
<div>
<div style="margin-right:13px;"></div>
<div style="margin-right:13px;"></div>
<div style="margin-right:13px;"></div>
<div></div>
<div style="margin-right:13px; margin-top:10px"></div>
<div style="margin-right:13px; margin-top:10px"></div>
<div style="margin-right:13px; margin-top:10px"></div>
<div style="margin-top:10px"></div>
</div>
</div>
<div></div>
<div style="background:url(images/longAD2.jpg)"></div>
<div>家电</div>
<div>
<div style="background:url(images/buy/家电AD1.jpg)"></div>
<div></div>
<div></div>
<div></div>
<div style="margin-right:0px;"></div>
<div style="background:url(images/buy/家电AD2.jpg);margin-top:10px;"></div>
<div style="margin-top:10px;"></div>
<div style="margin-top:10px;"></div>
<div style="margin-top:10px;"></div>
<div style="margin-top:10px; margin-right:0px; background:none;">
<div></div>
<div></div>
</div>
</div>
<div></div>
<div style="background:url(images/longAD3.jpg)"></div>
<div>智能</div>
<div>
<div style="background:url(images/buy/智能AD1.jpg)"></div>
<div></div>
<div></div>
<div></div>
<div style="margin-right:0px;"></div>
<div style="background:url(images/buy/智能AD2.jpg);margin-top:10px;"></div>
<div style="margin-top:10px;"></div>
<div style="margin-top:10px;"></div>
<div style="margin-top:10px;"></div>
<div style="margin-top:10px; margin-right:0px; background:none;">
<div></div>
<div></div>
</div>
</div>
<div style="background:url(images/longAD4.jpg)"></div>
</div>
</div>
<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-color: #333;
}
.menu{
width: 1225px;
height: 40px;
background-color: #F5F5F5;
margin: 0px auto;
}
/*中间样式*/
.content_1{
width: 1225px;
margin: 0px auto;
}
.content_nav{
height: 90px;
background-color: #F5F5F5;
margin: 10px auto;
}
.content_menu{
margin: 10px auto;
}
.content_menu_l{
width: 235px;
height: 500px;
background-color: #F5F5F5;
float: left;
}
.content_menu_r{
width: 990px;
height: 500px;
background-color: blue;
float: left;
}
.content_pic{
margin: 10px auto;
}
.content_pic_1{
background-color:#5F5750;
width: 235px;
height: 170px;
float: left;
margin-right: 14px;
}
.content_pic_0{
width: 316px;
height: 170px;
float: left;
margin-right: 14px;
}
/*小米闪购*/
.content_gou{
margin: 10px auto;
}
.content_gou_1{
width: 235px;
height:340px;
background-color: #FAFAFA;
margin-right: 12.5px;
float: left;
}
.content_longAD{
height: 119px;
margin: 10px auto;
}
.content_class{
height: 100px;
background-color: #F5F5F5;
margin: 10px auto;
}
.content_classpic{
height: 614px;
width: 1225px;
background-color: #F5F5F5;
margin: 10px auto;
}
/*手机分类图片*/
.content_classpic_l{
width: 234px;
height: 614px;
margin-right: 12px;
float: left;
}
.content_classpic_r{
width: 979px;
height: 614px;
float: left;
}
.content_classpic_r div{
width: 235px;
height: 302px;
background: #ccc;
float: left;
}
/*家电分类图片样式*/
.content_classpic_AD{
width: 234px;
height: 302px;
margin-right: 12px;
float: left;
}
.content_classpic_1{
width: 235px;
height: 302px;
background: #ccc;
margin-right: 13px;
float: left;
}
/*家电最后一个上下分层*/
.content_classpic_lstup{
width: 235px;
height: 146px;
background: #ccc;
}
.content_classpic_lstdn{
width: 235px;
height: 146px;
margin-top: 10px;
background: #ccc;
}
/*底部样式*/
.footer_1{
width: 1225px;
height: 250px;
background-color: #ccc;
margin: 10px auto;
}