JQuery-based Pager splitter implements code _ jquery

Source: Internet
Author: User
Page paging is the most familiar to programmers. In WEB development, page paging is often required. The jQuery plug-in JQueryPager can easily implement the javascript paging function, and only a few lines of code are required, javascript paging is easy to handle. The instance is as follows:



Instructions for use
The jQuery library file and the JQuery Pager library file must be used (current version 1.1)

Material Preparation
The CSS sample file of the sub-page, which can be copied as the CSS sample and named pager.css.

The Code is as follows:


# Pager ul. pages {
Display: block;
Border: none;
Text-transform: uppercase;
Font-size: 10px;
Margin: 10px 0 50px;
Padding: 0;
}
# Pager ul. pages li {
List-style: none;
Float: left;
Border: 1px solid # ccc;
Text-decoration: none;
Margin: 0 5px 0 0;
Padding: 5px;
}
# Pager ul. pages li: hover {
Border: 1px solid # 003f7e;
}
# Pager ul. pages li. pgEmpty {
Border: 1px solid # eee;
Color: # eee;
}
# Pager ul. pages li. pgCurrent {
Border: 1px solid # 003f7e;
Color: #000;
Font-weight: 700;
Background-color: # eee;
}


Instance code
1. Contains the file section

The Code is as follows:



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.