页面翻页
作者:
阿朝狠酷 | 来源:发表于
2019-01-15 19:02 被阅读0次
代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>翻页</title>
<style type="text/css">
.page{
width: 960px;
height: 42px;
margin: 100px auto;
border: 1px #E7E7E7 solid;
}
.page1{
width: 450px;
margin: 8px auto;
}
a{
text-align: center;
text-decoration: none;
display: inline-block;
background-color: gold;
font: 12px 微软雅黑;
color: #000;
padding: 5px 11px;
}
a:hover{
color: #dd992d;
}
</style>
</head>
<body>
<div class="page">
<div class="page1">
<a href="#" class="button">上一页</a>
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<span>...</span>
<a href="#">17</a>
<a href="#">18</a>
<a href="#">19</a>
<a href="#">20</a>
<a href="#" class="button">下一页</a>
</div>
</div>
</body>
</html>
效果图
翻页.png
本文标题:页面翻页
本文链接:https://www.haomeiwen.com/subject/xkxudqtx.html
网友评论