翻页完成效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.fanye{
width: 960px;
height: 42px;
border:1px solid black;
margin:0px auto;
text-align: center;
padding-top: 15px;
}
.yema:link{
background-color: black;
}
.yema:hover{
background-color: #6D6E6A;
}
.yema:active{
background-color: #8764B8;
}
.yema{
font-size: 12px;
font-style: "雅黑";
color: #FFFFFF;
text-decoration: none;
padding: 5px 10px;
}
</style>
</head>
<body>
<div class="fanye">
<a class="yema" href="#">上一页</a>
<a class="yema" href="#">1</a>
<a class="yema" href="#">2</a>
<a class="yema" href="#">3</a>
<a class="yema" href="#">4</a>
<span>...</span>
<a class="yema" href="#">17</a>
<a class="yema" href="#">18</a>
<a class="yema" href="#">19</a>
<a class="yema" href="#">20</a>
<a class="yema" href="#">下一页</a>
</div>
</body>
</html>
导航条完成效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
/* *{
margin: 0px;
padding: 0px;
} */
.heng{
width: 960px;
height: 42px;
border: 1px solid black;
margin: 0px auto;
text-align: center;
padding-top: 13px;
}
.daohang{
list-style:none;
display: inline-block;
font-style: "雅黑";
font-size: 14px;
color: black;
}
.daohang>a{
text-decoration: none;
}
.daohang:link{
background-color: black;
}
.daohang:hover{
background-color: #6d6e6a;
}
.daohang:active{
background-color: black;
color: white;
}
.xian{
margin-left: 20px;
margin-right: 20px;
}
</style>
</head>
<body>
<div>
<ul class="heng">
<li class="daohang">
<a href="#">首页</a>
</li>
<li class="daohang xian">|</li>
<li class="daohang">
<a href="#">网站建设</a>
</li>
<li class="daohang xian">|</li>
<li class="daohang">
<a href="#">程序开发</a>
</li>
<li class="daohang xian">|</li>
<li class="daohang">
<a href="#">网络营销</a>
</li>
<li class="daohang xian">|</li>
<li class="daohang">
<a href="#">企业VI</a>
</li>
<li class="daohang xian">|</li>
<li class="daohang">
<a href="#">案例展示</a>
</li>
<li class="daohang xian">|</li>
<li class="daohang">
<a href="#">联系我们</a>
</li>
</ul>
</div>
</body>
</html>
亚马逊
完成效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{
margin:0px;
padding: 0px;
}
.btn{
display: block;
width: 111px;
height: 50px;
background-image: url(img/6.png);
background-repeat: repeat;
background-attachment: fixed;
}
.btn1{
display: block;
width: 42px;
height: 30px;
background-position: -10px -340px;
background-image: url(img/6.png);
}
.btn1:hover{
background-position: -10px -340px;
}
.btn1:active{
background-position: -58px -338px;
}
</style>
</head>
<body>
<a href="#" class="btn"></a>
<a href="#" class="btn1"></a>
</body>
</html>