body{
background: url(../img/bd-bg.png) repeat-x;
}
.header{
background-color: bisque;
padding-top: 37px;
padding-bottom: 46px;
}
.w{
width: 940px;
margin: auto;
}
.text{
float: right;
margin-top: 22px;
}
.text li{
float: left;
padding: 0px,10px,18px;
border-left: 1px #d6d6d6 dotted;
}
.text a{
color: #666;
font: bold 14px georgia;
text-decoration: none;
}
.text a:hover{
color: #a1a1a1;
text-decoration: underline;
}
THML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>17211134114RKH</title>
<link rel="stylesheet" type="text/css" href="css/reset.css"/>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<div class="header w">
<div class="logo">
<a href="#" title="一个非常好的网站">
<img scr="img/logo.png" alt="网站的logo"/>
</a>
</div>
<ul class="text">
<li><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Products</a></li>
<li><a href="">Services</a></li>
<li><a href="">Contact</a></li>
</ul>
</div>
</body>
</html>