分享一个自己写的分页条:
CSS代码如下:
.page{margin:68px auto;padding-left:25%;font-size:12px;}
.page ul li{float: left;height: 22px;line-height: 22px;cursor: pointer;list-style:none;}
.page ul li:hover,li.pagenumber:hover{color:#F66;}
.page .pageInfo{margin-left: 5px;}
.page .pagenumber{margin-left:-40px;}
.page .start{width:54px; padding:0 8px 0 0;text-align:right; height:22px; line-height:22px; display:block; text-align:right;background:url(page/first.png) no-repeat;}
.page .start_off{width:54px; padding:0 10px 0 0; text-align:right; background:url(page/first_off.png) no-repeat; font-family:Arial,Helvetica,sans-serif;}
.page .first{width:54px; padding:0 8px 0 0; height:22px; line-height:22px; display:block; text-align:right; background:url(page/prev.png) no-repeat;}
.page .first_off{width:54px; padding:0 8px 0 0; text-align:right; background:url(page/prev_off.png) no-repeat; font-family:Arial,Helvetica,sans-serif;}
.page .fleft{background:url(page/left.png); width:5px;}
.page .fcenter,.pagenumber li.nowPage{background:url(page/right.png); padding:0 5px;}
.page .fright{background:url(page/right.png) right; width:5px;}
.page .next{width:54px;margin-left:8px;padding:0px; height:22px; line-height:22px; display:block; text-align:left; background:url(page/next.png) no-repeat;}
.page .next_off{width:54px;margin-left:8px;padding:0px; text-align:left; background:url(page/next_off.png) no-repeat; font-family:Arial,Helvetica,sans-serif;}
.page .end{width:54px;margin-left:8px; padding:0 0 0 8px; height:22px; line-height:22px; display:block; text-align:left; background:url(page/last.png) no-repeat;}
.page .end_off{width:54px;margin-left:8px; padding:0 0 0 8px; text-align:left; background:url(page/last_off.png) no-repeat; font-family:Arial,Helvetica,sans-serif;}
.page .pagenumber li{color:#000; font-size:12px; font-family:Arial,Helvetica,sans-serif;}
.page .pagenumber li.nowPage{color: #F70707;font-weight: bold;font-size: 14px;}
.page select{padding:2px; height:22px; border:1px #CCC solid; background:#FFF; -moz-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}
#totalPage,#currentPage{color:red;font-weight: bold;}
<div class="page">
<ul>
<li class="start">首页 </li>
<li class="first">上一页</li>
<li class="pagenumber">
<ul>
<li class="fleft"/>
<li class="fcenter">1</li>
<li class="fcenter">2</li>
<li class="fcenter">3</li>
<li class="nowPage">4</li>
<li class="fcenter">5</li>
<li class="fcenter">6</li>
<li class="fcenter">7</li>
<li class="fcenter">8</li>
<li class="fcenter">9</li>
<li class="fcenter">10</li>
<li class="fright"/>
</ul>
</li>
<li class="next">下一页</li>
<li class="end">尾页</li>
<li>
<select onchange="window.open(this.options[this.selectedIndex].value,'_self');" class="rounded">
<option value="" selected="selected">5条/页</option>
<option value="">10条/页</option>
<option value="">20条/页</option>
</select>
</li>
<li class="pageInfo">共<span id="totalPage">6</span>条/<span id="currentPage">2</span>页</li>
</ul>
</div>
源码请在附件中下载!
附效果图:
分享到:
相关推荐
div+css百分比表格+DIV+CSS+JS静态分页程序+DIV+CSS像素表格 百分比表格(用DIV+CSS)以百分比显示,可以根据窗口的大小自动调节所显示的大小! DIV+CSS+JS静态分页程序可兼容主流浏览器(IE、FF、Opera) DIV+CSS表格...
精选多款DIV+CSS分页样式源码,css分页样式源码
Div+Css分页插件
雅虎等大型网站div+css分雅虎等雅虎等大型网站div+css分页源码,大型网站div+css分页源码,页源码,
这是一组简单的div+css分页代码。示例代码中共有24种不同风格的div+css分页示例。这些page分页代码简单,非常容易集成到项目中。
div+css制作非常实用的24款分页页码css代码
24种简单的div+css分页代码特效.zip
通过对23种分页导航的设计、其中使用到div、css方面的技术
div+css 24种分页样式 可以生意修改
div+css3阶梯分页样式.zip
资源标题:艺帆全站DIV+CSS体育用品公司网站源码 资源版本:艺帆CMS企业版1.7.5V 关键词:艺帆CMS,YifanFCMS,体育用品公司网站源码,免费体育用品公司网站源码 类型:asp/access 功能:单页设置 单页分类设置 新闻 ...
12、客户端:后台程序采用.net,前台均采用div+css形式,大大提高了系统兼容性和可扩展性。大大提高网页浏览效率,符合搜索引擎更多收录需求。 <br>下载地址: http://www.lantou.net/download/freeweb.rar ...
div+css+js制成的表单,点击列名,可以使数据根据点击的列进行升序、降序的排序,还可以选择当前页显示的数据数量。适合网站后台使用
"<div class=\"msg_content\">"+val.msg_time+" "+val.msg_content+"</div>" 其中,val.msg_time val.msg_content要和class文件中一致 3、修改class文件的tablename为自己数据库中的名称 修改fn_select函数...
怎么用aspnetpager.dll这个插件对服务器控件进行分页,今天与我大家分享一下asp.net利用存储过程和div+css实现分页(类似于博客园首页分页)
.net分页及分页样式 DIV+CSS分页
CSS,DIV,分页,导航,配色 CSS,DIV,分页,导航,配色 CSS,DIV,分页,导航,配色
div css样式表制作24款css分页样式