[css]代码库
<!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>css分页效果</title>
<style>
ul {
border:0;
margin:0;
padding:0;
}
#pagination-flickr li {
border:0;
margin:0;
padding:0;
font-size:11px;
list-style:none;
}
#pagination-flickr a {
border:solid 1px #DDDDDD;
margin-right:2px;
}
#pagination-flickr .previous-off, #pagination-flickr .next-off {
color:#666666;
display:block;
float:left;
font-weight:bold;
height: 15px;
padding-top: 3px;
padding-right: 4px;
padding-bottom: 3px;
padding-left: 4px;
line-height: 15px;
}
#pagination-flickr .next a, #pagination-flickr .previous a {
font-weight:bold;
border:solid 1px #FFFFFF;
}
#pagination-flickr .active {
color:#FFF;
font-weight:bold;
display:block;
float:left;
padding:4px 6px;
background-color: #069;
}
#pagination-flickr a:link, #pagination-flickr a:visited {
color:#0063e3;
display:block;
float:left;
padding:3px 6px;
text-decoration:none;
}
#pagination-flickr a:hover {
border:solid 1px #666666;
}
</style>
</head>
<body>
<ul id="pagination-flickr">
<li class="previous-off">上一页</li>
<li class="active">1</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 class="next"><a href="#">下一页</a></li>
</ul>
</body>
</html>
[代码运行效果截图]