pagination controls Aspnetpager-practical tips for styling

Source: Internet
Author: User

In the previous period of time to develop the site process, suddenly feel that this concise style and the overall style of the site does not mix, so look at the last generation of Aspnetpager HTML, wrote a section of CSS style, the style of pagination and the overall style of the site unified.

The effect is as follows:

Do not very good-looking, I hope we do not throw bricks, my head did not bag cotton, can not afford to hurt ~-_-~

CSS style sheet:

/* Aspnetpager Style Power by * *
. pager{width:95%; margin:10px; line-height:20px; Display:block;}
. Pager span {border:1px solid #CCCCCC; margin:0 5px; padding:1px 6px; float:left;}
. Pager a {
border:1px solid #CCCCCC;
Margin:0 5px;
. Pager a:hover {border:1 solid red; Background-color: #993399; color: #ffffff; margin:0 5px; padding:1px 6px;}

Call mode: Add a div wrapped outside the paging control and call directly

        <div class= "pager"
                 <webdiyer:aspnetpager id= "Pager" runat= "Server" firstpagetext= "Home" lastpagetext= "last" nextpagetext= "Back Page" onpagechanging= "pager_pagechanging" pagesize= "9" prevpagetext= "front page" numericbuttoncount= "9"

Related Article

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: 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.