<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.header {
height: 92px;
}
.in {
height: 40px;
border-top: 3px solid #ff8500;
border-bottom: 1px solid #edeef0;
}
a {
float: left;
width: 81px;
height: 40px;
text-align: center;
line-height: 40px;
text-decoration: none;
font-size: 12px;
color: #4c4c4c;
}
a:hover {
background-color: #f6f5ec;
color: #f15a22;
}
</style>
</head>
<body>
<div class="header">
<div class="in">
<a href="#">新浪导航</a>
<a href="#">新浪导航</a>
<a href="#">新浪导航</a>
<a href="#">新浪导航</a>
</div>
</div>
</body>
</html>
刚开始要清除默认样式