dedecms分页居中显示

分页代码
 

<div class="pagination-wrapper">
<div class="pagination">
{dede:pagelist listsize='5' listitem='info,index,end,pre,next,pageno'/}
</div>
</div>

 
样式
 

/*pages*/
.pagination-wrapper {
    clear:both;
    padding:1em 0 2em 0;
    text-align:center;
}
.pagination {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    font-size:12px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.pagination li{
    list-style: none;
    display: inline;
    float: left;
    line-height: 1em;
    text-decoration: none;
    border: 1px solid #ddd;
   border-left-width: 0;
}
.pagination li a {
    display: inline-block;
    padding: .5em .8em;
    background-color: #f9f9f9;
   color: #999;
}
.pagination li a:link{
    background:#fff;
   color: #4C78A5;
}
.pagination li a:hover{
    text-decoration:none;
}
.pagination li a:link:hover {
    color: #000;
}
.pagination li.thisclass {
    background-color: #f9f9f9;
   color:#999;
}
.pagination li:first-child {
    border-left-width: 1px;
    border-radius: 3px 0 0 3px;
}
.pagination li:last-child{
    border-radius: 0 3px 3px 0;
}
.pagination .pageinfo{
    color: #444;
}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: