跟着老师先做一遍。之后在自己重新操作一遍

原创 2018-11-25 23:35:30 205
摘要:<!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 style="background:url(images/longAD1.jpg)"></div>
<div>手机</div>
<div>手机图片</div>
<div style="background:url(images/longAD2.jpg)"></div>
<div>家电</div>
<div>家电图片</div>
<div style="background:url(images/longAD3.jpg)"></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: #ccc;
margin: 0px auto;
}

/*中间样式*/
.content_1{
width: 1225px;
margin: 0px auto;
}

.content_nav{
height: 90px;
background-color: #ccc;
margin: 10px auto;
}

.content_menu{
height: 500px;
background-color: #ccc;
margin: 10px auto;
}

.content_pic{
height: 180px;
background-color: #ccc;
margin: 10px auto;
}

.content_gou{
height: 280px;
background-color: #ccc;
margin: 10px auto;
}

.content_longAD{
height: 119px;
margin: 10px auto;
}

.content_class{
height: 100px;
background-color: #ccc;
margin: 10px auto;
}

.content_classpic{
height: 500px;
background-color: #ccc;
margin: 10px auto;
}
/*底部样式*/
.footer_1{
width: 1225px;
height: 250px;
background-color: #ccc;
margin: 10px auto;
}


发布手记

热门词条