首布局跟堂小结

原创 2018-11-22 18:50:43 206
摘要:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>小米商城</title> <link rel="shortcut icon" type="imge/x-icon" href="stat

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>小米商城</title>

<link rel="shortcut icon" type="imge/x-icon" href="static/img/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">

<style type="text/css">

*{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: #ccc;width: 1226px;height: 40px;margin: 0px auto;}


/*主体部分样式*/

.content{width: 1226px;margin: 0px auto;}

.contentMenu{background: #ccc;height: 90px;margin: 10px auto;}

.contentPic{background: #ccc;height: 480px;margin: 10px auto;}

.contentPic_ul{background: #ccc;height: 180px;margin: 10px auto;}

.contentShop{background: #ccc;height: 280px;margin: 10px auto;}

.contentImg{background: #ccc;height: 100px;margin: 10px auto;}

.contentUl{background: #ccc;height: 280px;margin: 10px auto;}

.contentPhone{background: #ccc;height: 80px;margin: 10px auto;}


/*网页底部*/

.footer{background: #ccc;width: 1226px;height: 100px;margin: 10px auto;}

</style>

</head>

<body>

<!-- 头部 -->

<div class="header">

<div class="menu"></div>

</div>

<!-- 主体部分 -->

<div class="contents">

<div class="content">

<div class="contentMenu"></div>

<div class="contentPic"></div>

<div class="contentPic_ul"></div>

<div class="contentShop"></div>

<div class="contentImg" style="background:url(static/img/longAD1.jpg);"></div>

<div class="contentUl">手机</div>

<div class="contentPhone"></div>

<div class="contentImg" style="background:url(static/img/longAD2.jpg);"></div>

<div class="contentUl">家电</div>

<div class="contentPhone"></div>

<div class="contentImg" style="background:url(static/img/longAD3.jpg);"></div>

<div></div>



</div>

</div>

<!-- 底部 -->

<div class="footers">

<div class="footer"></div>

</div>

</body>

</html>


发布手记

热门词条