小米商城首页布局分解

原创 2018-12-22 18:25:36 191
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0&q
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>小米商城</title>
<link rel="shortcut icon" href="static/images/footlogo.png" type="image/x-icon">
<link rel="stylesheet" href="static/font-awesome/css/font-awesome.min.css" type="text/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 style="background: url(static/images/longAD1.jpg);"></div>
<div>手机</div>
<div></div>
<div style="background: url(static/images/longAD2.jpg);"></div>
<div>智能</div>
<div></div>
<div style="background: url(static/images/longAD3.jpg);"></div>
<div>家电</div>
<div></div>
<div style="background: url(static/images/longAD4.jpg);"></div>
<div></div>
</div>
</div>
<div>
<div>网页底部</div>
</div>
</body>
</html>
*{
    margin: 0px;
    padding: 0px;}
li{list-style: none;}
a{text-decoration: none;
    color: #cccccc;
    cursor: pointer;}
.clear{
    clear: both;}
/*头部*/
.header{
    background: #333;
    width: 100%;
    height: 40px;}
.menu{
    background: #ccc;
    width: 1226px;
    height: 40px;
    margin: 0px auto;}
/*主体*/
.content{
    width: 1226px;
    margin: 0px auto;}
.contentMenu{
    background: #cccccc;
    height: 90px;
    margin: 10px auto;}
.contentPic{
    background: #cccccc;
    height: 480px;
    margin: 10px auto;}
.contentPic_ul{
    background: #cccccc;
    height: 180px;
    margin: 10px auto;}
.contentShop{
    background: #cccccc;
    height: 280px;
    margin: 10px auto;}
.contentImg{
    background: #cccccc;
    height: 100px;
    margin: 10px auto;}
.contentUl{
    background: #cccccc;
    height: 80px;
    margin: 10px auto;}
.contentPhone{
    background: #cccccc;
    height: 500px;
    margin: 10px auto;}
/*底部*/
.footer{
    background: #ccc;
    width: 1226px;
    height: 100px;
    margin: 10px auto;}


发布手记

热门词条