小米商城首页布局

原创 2019-01-02 20:02:34 297
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>小米商城</title> <link rel="stylesheet icon" href="imag
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>小米商城</title>
<link rel="stylesheet icon" href="images/footlogo.png">
<link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- 头部 -->
<div>
<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>网站底部</div>
</body>
</html>
*{margin:0;padding: 0}
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:0 auto;}
/*主体*/
.contents{width: 1226px;margin:0px auto;}
.contentMune{background: #ccc;height: 70px;margin:10px auto;}
.contentPic{background: #ccc;height: 460px;margin:10px auto;}
.contentPic-ul{background: #ccc;height: 170px;margin:10px auto;}
.contentShop{background: #ccc;height: 415px;margin:10px auto;}
.contentImg{background: #ccc;height: 100px;margin:10px auto;}
.contentUl{background: #ccc;height: 80px;margin:10px auto;}
.contentPhione{background: #ccc;height: 600px;margin:10px auto;}
/*底部*/
.footer{background: #666;width: 1226px;height: 200px;margin:0px auto;}


发布手记

热门词条