HTMl:
<div class="paging"> <div class="page-num"> <select id="selPageSize"> <option value="10">10</option> <option value="20">20</option> <option value="50">50</option> <option value="100">100</option> </select> </div> <div class="page-prev-button"> <a href="javascript:void(0)" class="page-prev-home"></a> <a href="javascript:void(0)" class="page-prev"></a> </div> <div class="page-curr"> 0/0 </div> <div class="page-next-button"> <a href="javascript:void(0)" class="page-next"></a> <a href="javascript:void(0)" class="page-next-end"></a> </div> <div class="page-count"> 共 <span>0</span> 条 </div> </div>
CSS:
.list-search .paging { height: 30px; background-color: #f5f5f5; padding: 5px; display: inline-block; 100%; } .list-search .paging .page-num { display: inline-block; float: left; margin-right: 5px; border-right: solid 1px #ccc; padding-right: 5px; } .list-search .paging .page-num select { 50px; height: 21px; } .list-search .paging .page-prev-button { 40px; height: 100%; display: inline-block; float: left; border-right: solid 1px #ccc; } .list-search .paging .page-prev-button .page-prev-home { display: inline-block; 15px; height: 100%; background: url('../images/CloudStorage/pagination_icons.png') no-repeat; background-position-y: 2px; } .list-search .paging .page-prev-button .page-prev { display: inline-block; 15px; height: 100%; background: url('../images/CloudStorage/pagination_icons.png') no-repeat; background-position: -20px 2px; } .list-search .paging .page-curr { 70px; height: 100%; display: inline-block; float: left; text-align: center; border-right: solid 1px #ccc; } .list-search .paging .page-next-button { 40px; height: 100%; display: inline-block; float: left; border-right: solid 1px #ccc; } .list-search .paging .page-next-button .page-next { display: inline-block; 15px; height: 100%; background: url('../images/CloudStorage/pagination_icons.png') no-repeat; background-position: -28px 2px; } .list-search .paging .page-next-button .page-next-end { display: inline-block; 15px; height: 100%; background: url('../images/CloudStorage/pagination_icons.png') no-repeat; background-position: -47px 2px; } .list-search .paging .page-count { height: 100%; 100px; float: left; margin-left: 5px; }