<style>
div {
width: 200px;
height: 200px;
border: 1px solid orange;
}
.box1{
padding-left: 15px;
}
.box2{
padding: 12px 10px 0 25px;
}
</style>
</head>
<body>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</body>
div{
text-align: center;
}
.nav a{
display: inline-block;
width: 120px;
height: 50px;
line-height: 50px;
color: #fff;
text-decoration: none;
background: url(images\(2\)/bg.png) no-repeat;
}
.nav a:hover{
background-image: url(images\(2\)/bgc.png);
}
</style>
</head>
<body>
<div class="nav">
<a href="#">网站首页</a>
<a href="#">网站首页</a>
<a href="#">网站首页</a>
<a href="#">网站首页</a>
<a href="#">网站首页</a>
<a href="#">网站首页</a>