<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网站导航</title>
<style>
.nav {
text-align: center;
}
.nav a {
display: inline-block;
width: 120px;
height: 50px;
line-height: 50px;
color: #fff;
text-decoration: none;
background-image: url(imges/bg.jpg);
}
.nav a:hover {
background-image: url(imges/bgc.jpg);
}
</style>
</head>
<body>
<div class="nav">
<a href="#">网站导航</a>
<a href="#">网站导航</a>
<a href="#">网站导航</a>
<a href="#">网站导航</a>
<a href="#">网站导航</a>
<a href="#">网站导航</a>
</div>
</body>
</html>