<!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>Document</title>
<style>
.nav{text-align: center;}
.nav a
{
background:url(bg.png);
display: inline-block;
height: 40px;
width: 120px;
text-align: center;
color: #fff;
font-size: 20px;
text-decoration: none;
line-height: 40px;
}
.nav a:hover
{
color:orange;
background-image: url(bgc.png);
}
.zr {
background-position: left center;
}
</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>