<html>
<head>
<title>CSS分页按钮</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
#nav {
list-style: none;
display: inline;
}
#nav li {
display: inline;
margin-right: 5px;
float: left;
height: 20px;
width: 20px;
}
#nav a {
color: #399;
text-decoration: none;
display: block;
font-size: 14px;
font-family: Geneva, Arial, Helvetica, sans-serif;
border: 1px solid #999;
width: 20px;
height: 20px;
line-height: 20px;
text-align: center;
}
#nav li a:hover {
font-size: 24px;
line-height: 30px;
height: 30px;
width: 30px;
position: absolute;
z-index: 10;
margin: -5px 0 0 -5px;
font-weight: bold;
color: #CC66FF;
border: 1px dotted #666666;
background: #EEE;
}
</style>
</head>
<body>
<ul id="nav">
<li><a href="#">«</a></li>
<li><a href="/">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="/">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
<li><a href="/">7</a></li>
<li><a href="/">8</a></li>
<li><a href="#">»</a></li>
</ul>
</body>
</html>
转载于:https://www.cnblogs.com/haver/articles/1929770.html