购物车
五彩导航栏
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>五彩导航栏</title>
<style>
.nav a {
display: inline-block;
text-align: center;
text-decoration: none;
width: 120px;
height: 57px;
line-height: 57px;
color: #fff;
}
.one {
background-image: url(images/bg1.png);
}
.two {
background-image: url(images/bg2.png);
}
.three {
background-image: url(images/bg3.png);
}
.four {
background-image: url(images/bg4.png);
}
.one:hover {
background-image: url(images/bg5.png);
}
.two:hover {
background-image: url(images/bg6.png);
}
.three:hover {
background-image: url(images/bg7.png);
}
.four:hover {
background-image: url(images/bg1.png);
}
</style>
</head>
<body>
<div class="nav">
<a href="#" class="one">五彩导航</a>
<a href="#" class="two">五彩导航</a>
<a href="#" class="three">五彩导航</a>
<a href="#" class="four">五彩导航</a>
</div>
</body>
</html>
来源:CSDN
作者:玖月柒
链接:https://blog.csdn.net/weixin_45257157/article/details/103479817