实现效果图
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>链接导航栏</title>
<style>
.nav{
text-align: center;
}
div>a{
display: inline-block;
text-align: center;
color: white;
height: 50px;
width: 120px;
line-height: 50px;
background-color: green;
background-image: none;
background-attachment: fixed;
background-position: 50px 50px;
text-decoration: none;
}
a:hover{
color: orange;
}
</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>