header的border设置成8px才现实正常?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
header{
width: 762px;
height: 92px;
border: 8px solid #BADBDB;
background: url(img/banner.gif) no-repeat;
text-align: right;
margin: 0 auto;
}
header a:visited,a{
text-decoration: none;
color: #000;
font-weight: bold;
}
header a:hover,a:active{
color: #ffffff;
background: #00BFFF;
}
.wrapper{
width: 770px;
margin: 0 auto;
}
.content{
border: 4px solid #badbdb;
padding-top: 34px;
width: 770px;
}
img{
margin: 10px 18px;
border: 1px solid #CCCCCC;
}
.book{
background: url(img/t_book.gif) no-repeat #eff9f9;
}
footer{
text-align: center;
padding: 20px 0;
}
</style>
</head>
<body>
<div class="wrapper">
<header>
<a href="#">联系我们</a>
<a href="#">站点地图</a>
</header>
<div class="content book">
<img src="img/book1.jpg" width="80px" height="80px" />
<img src="img/book2.jpg" width="80px" height="80px" />
<img src="img/book3.jpg" width="80px" height="80px" />
<img src="img/book4.jpg" width="80px" height="80px" />
<img src="img/book5.jpg" width="80px" height="80px" />
</div>
</div>
<footer>copyright © 2004-2012 Jimmyspa.com All Rights Reserved.</footer>
</body>
</html>