第一种Bootstrap -默认的分页实例,供大家参考,具体内容如下
<!DOCTYPE html> <html> <head> <title>Bootstrap 实例 - 默认的分页</title> <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> </head> <body> <div ><h1>第1页</h1></div> <ul class="pagination"> <li><a href="1.html">«</a></li> <li><a href="1.html">1</a></li> <li><a href="2.html">2</a></li> <li><a href="3.html">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> <li><a href="#">»</a></li> </ul> </body> </html>
第二个实例jquery pagination分页控件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pagination Demo I - Simple pagination</title>
<link rel="stylesheet" href="lib/pagination.css" />
<link rel="stylesheet" href="demo.css" />
<script type="text/javascript" src="lib/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="lib/jquery.pagination.js"></script>
<script type="text/javascript">
function pageselectCallback(page_index, jq){
var new_content = jQuery('#hiddenresult div.result:eq('+page_index+')').clone();
$('#Searchresult').empty().append(new_content);
return false;
}
function initPagination() {
// count entries inside the hidden content
var num_entries = jQuery('#hiddenresult div.result').length;
// Create content inside pagination element
$("#Pagination").pagination(num_entries, {
callback: pageselectCallback,
items_per_page:1 // Show only one item per page
});
}
// When document is ready, initialize pagination
$(document).ready(function(){
initPagination();
});
</script>
</head>
<body>
<br style="clear:both;" />
<div id="Searchresult">
This content will be replaced when pagination inits.
</div>
<div class="searchresult_pagination"></div>
<br style="clear:left;">
<!-- Container element for all the Elements that are to be paginated -->
<div id="hiddenresult" style="display:none;">
<div class="result"><p>Globally maximize granular
"outside the box" thinking vis-a-vis quality niches. Proactively formulate 24/7
results whereas 2.0 catalysts for change. Professionally implement 24/365 niches
rather than client-focused users.</p>
<p>
Competently engineer high-payoff "outside the box" thinking through cross
functional benefits. Proactively transition intermandated processes through
open-source niches. Progressively engage maintainable innovation and extensible
interfaces.</p>
</div>
<div class="result"><p>Credibly fabricate e-business models for end-to-end niches.
Compellingly disseminate integrated e-markets without ubiquitous services.
Credibly create equity invested channels with multidisciplinary human capital.</p>
<p>
Interactively integrate competitive users rather than fully tested
infomediaries. Seamlessly initiate premium functionalities rather than impactful
architectures. Rapidiously leverage existing resource-leveling processes via
user-centric portals.</p>
</div>
<div class="result"><p>Monotonectally initiate unique
e-services vis-a-vis client-centric deliverables. Quickly impact parallel
opportunities with B2B bandwidth. Synergistically streamline client-focused
infrastructures rather than B2C e-commerce.</p>
<p>
Phosfluorescently fabricate 24/365 e-business through 24/365 total linkage.
Completely facilitate high-quality systems without stand-alone strategic theme
areas.</p>
</div>
<div class="result"><p>Monotonectally initiate unique
e-services vis-a-vis client-centric deliverables. Quickly impact parallel
opportunities with B2B bandwidth. Synergistically streamline client-focused
infrastructures rather than B2C e-commerce.</p>
<p>
Phosfluorescently fabricate 24/365 e-business through 24/365 total linkage.
Completely facilitate high-quality systems without stand-alone strategic theme
areas.</p>
</div>
</div>
<div id="Pagination"></div>
</body>
</html>
分页效果:
源码:https://github.com/gbirke/jquery_pagination
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。
# Bootstrap静态分页
# jquery
# pagination动态分页
# pagination
# jQuery EasyUI API 中文文档 - Pagination分页
# jQuery Pagination Ajax分页插件(分页切换时无刷新与延迟)中文翻译版
# Jquery 分页插件之Jquery Pagination
# jquery分页插件jquery.pagination.js使用方法解析
# jquery.pagination +JSON 动态无刷新分页实现代码
# jquery插件pagination实现无刷新ajax分页
# asp.net jquery无刷新分页插件(jquery.pagination.js)
# jQuery插件分享之分页插件jqPagination
# jquery pagination分页插件使用详解(后台struts2)
相关文章:
网站制作新手教程,新手建设一个网站需要注意些什么?
东莞市网站制作公司有哪些,东莞找工作用什么网站好?
制作无缝贴图网站有哪些,3dmax无缝贴图怎么调?
湖州网站制作公司有哪些,浙江中蓝新能源公司官网?
小捣蛋自助建站系统:数据分析与安全设置双核驱动网站优化
如何在Ubuntu系统下快速搭建WordPress个人网站?
C++ static_cast和dynamic_cast区别_C++静态转换与动态类型安全转换
三星网站视频制作教程下载,三星w23网页如何全屏?
如何在Windows 2008云服务器安全搭建网站?
香港服务器WordPress建站指南:SEO优化与高效部署策略
测试制作网站有哪些,测试性取向的权威测试或者网站?
建站之星客服服务时间及联系方式如何?
如何快速搭建二级域名独立网站?
,石家庄四十八中学官网?
如何解决VPS建站LNMP环境配置常见问题?
高端网站建设与定制开发一站式解决方案 中企动力
建站之星如何实现网站加密操作?
惠州网站建设制作推广,惠州市华视达文化传媒有限公司怎么样?
深圳网站制作平台,深圳市做网站好的公司有哪些?
C++如何将C风格字符串(char*)转换为std::string?(代码示例)
微信小程序制作网站有哪些,微信小程序需要做网站吗?
如何选购建站域名与空间?自助平台全解析
已有域名和空间如何快速搭建网站?
图片制作网站免费软件,有没有免费的网站或软件可以将图片批量转为A4大小的pdf?
网站按钮制作软件,如何实现网页中按钮的自动点击?
建站之星收费标准详解:套餐费用及年费价格表一览
rsync同步时出现rsync: failed to set times on “xxxx”: Operation not permitted
建站之星五站合一营销型网站搭建攻略,流量入口全覆盖优化指南
做企业网站制作流程,企业网站制作基本流程有哪些?
建站主机与服务器功能差异如何区分?
高端云建站费用究竟需要多少预算?
建站主机空间推荐 高性价比配置与快速部署方案解析
如何快速生成凡客建站的专业级图册?
如何在Golang中使用encoding/gob序列化对象_存储和传输数据
如何用y主机助手快速搭建网站?
如何用西部建站助手快速创建专业网站?
教育培训网站制作流程,请问edu教育网站的域名怎么申请?
威客平台建站流程解析:高效搭建教程与设计优化方案
,怎么用自己头像做动态表情包?
网站图片在线制作软件,怎么在图片上做链接?
巅云智能建站系统:可视化拖拽+多端适配+免费模板一键生成
智能起名网站制作软件有哪些,制作logo的软件?
PHP正则匹配日期和时间(时间戳转换)的实例代码
专业公司网站制作公司,用什么语言做企业网站比较好?
武汉网站如何制作,黄黄高铁武穴北站途经哪些村庄?
如何制作一个表白网站视频,关于勇敢表白的小标题?
免费制作小说封面的网站有哪些,怎么接网站批量的封面单?
为什么Go需要go mod文件_Go go mod文件作用说明
C++用Dijkstra(迪杰斯特拉)算法求最短路径
建站之星CMS建站配置指南:模板选择与SEO优化技巧
*请认真填写需求信息,我们会在24小时内与您取得联系。