<!DOCTYPE html>
<html>
<head>
<title>博客首页</title>
<link rel="shortcut icon" type="image/x-icon" href="static/images/xt.jpg">
<link rel="stylesheet" type="text/css" href="static/css/style.css">
</head>
<body>
<!-- 头部 -->
<div class="header">
<div class="menu"></div>
</div>
<!-- 主体部分 -->
<div class="conternts">
<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();"></div>
<div class="contentUL">手机</div>
<div class="contentPhone"></div>
<div class="contentImg" style="background: url();"></div>
<div class="contentUL">智能</div>
<div class="contentPhone"></div>
<div class="contentImg" style="background: url();"></div>
<div class="contentUL">家电</div>
<div class="contentPhone"></div>
<div class="contentImg" style="background: url();"></div>
</div>
</div>
<!-- 底部 -->
<div class="footers">
<div class="footer">网页底部</div>
</div>
</body>
</html>
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;}
/*底部样式*/
.footer{background: #ccc;width: 1226px;height: 100px;margin: 10px auto;}
就一个光标标签(cursor)一开始不知道是啥,然后百度下就清楚了-。-