<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
a{
width:17px;
height:20px;
line-height:20px;
/*行高一样,垂直居中*/
border:1px solid blue;
color:blue;
text-align:center;
text-decoration:none;
display:inline-block;
}
a:hover{
background:#30F;
color:#FFF;
}
.pagebtn{
width:64px;
}
</style>
</head>
<body>
<div id="div1">
<a href="https://www.baidu.com" class="pagebtn">上一页</a>
<a href="https://www.baidu.com">1</a>
<a href="https://www.baidu.com">2</a>
<a href="https://www.baidu.com">3</a>
<a href="https://www.baidu.com">4</a>
<a href="https://www.baidu.com">5</a>
<a href="https://www.baidu.com">6</a>
<a href="https://www.baidu.com">7</a>
<a href="https://www.baidu.com">8</a>
<a href="https://www.baidu.com">9</a>
<a href="https://www.baidu.com">10</a>
<a href="https://www.baidu.com" class="pagebtn">下一页</a>
</div>
</body>
</html>
翻页按钮布局
最新推荐文章于 2021-05-29 08:07:49 发布