基于jquery实现表格无刷新分页

本文实例讲解了基于jquery实现表格无刷新分页功能分享给大家供大家参考,具体内容如下

效果图:

具体代码

rush:xhtml;"> 面向对象的无刷新表格<a href="https://www.jb51.cc/tag/fenye/" target="_blank" class="keywords">分页</a> <Meta http-equiv="content-type" content="text/html;charset=utf-8"/>
rush:xhtml;"> html,body{margin: 0;padding:0} a:focus {outline: none;} h3.head_title {border-bottom: 1px solid #d5ddeb;color: #1c7493;display: block;font-size: 14px;height: 30px;line-height: 30px;margin-bottom: 10px;} /* 通用表格显示 */ table,th,td {font: 12px Arial,Helvetica,sans-serif,'宋体';margin: 0;padding: 0} table{border-spacing: 0;border-collapse: collapse;empty-cells: show} .data-table {width: 100%;border-style: none;background-color: #fff;/*margin-bottom: 20px;*/text-align: left;} .data-table th,.data-table td { padding: 5px;line-height: 30px} .data-table thead th {background-color: #eee;margin: 0;text-align: left;border-top: 1px solid #cfcfcf;border-bottom: 1px solid #cfcfcf;font-weight: 500} .data-table tbody td {background-color: #fff;border-bottom: 1px dotted #ddd;table-layout:fixed;word-break:break-all;border-collapse:collapse;font-weight: 400} .data-table tbody tr.evenrow td {background-color: #f4f4f4;} .data-table tfoot td {background-color: #fafafa;text-align: right;border-bottom: 1px solid #cfcfcf;} /*表格分页列表*/ .data-table td.paging a {border: 1px solid #eee; color: #444; margin: 4px; padding: 2px 7px; text-decoration: none; text-align:center;} /*表格分页当前页*/ .data-table td.paging a.current {background: #eee; border: 1px solid #CFCFCF; color: #444; font-weight: bold;} .data-table td.paging input{border:1px solid #4D90BB;font-family:Arial,Tahoma; font-size:12px; padding:0 5px;outline: none} .data-table td.paging .search-txt{height:30px;line-height:30px;width: 100px } .data-table td.paging .search-btn{height: 32px;border-left:none;cursor: pointer;_filter:chroma(color=#000000);_border:none;} /*表格排序*/ .data-table thead th.bg{background:#eee url("../images/bg.gif") right center no-repeat;cursor: pointer} .data-table thead th.asc{background: url("../images/asc.gif") right center no-repeat;cursor: pointer} .data-table thead th.desc{background: url("../images/desc.gif") right center no-repeat;cursor: pointer}

以上就是基于jquery实现表格无刷新分页功能的详细代码,希望对大家的学习有所帮助。

相关文章

jQuery表单验证提交:前台验证一(图文+视频)
jQuery表单验证提交:前台验证二(图文+视频)
jQuery如何实时监听获取input输入框的值
JQuery怎么判断元素是否存在
jQuery如何实现定时重定向
jquery如何获取复选框选中的值