The style beautification of the Asp.net paging control aspnetpager

Source: Internet
Author: User

In the process of developing a website some time ago, I suddenly felt that this simple style was really different from the overall style of the website, so I looked at the final HTML generated by aspnetpager, write a CSS style to unify the paging style and the overall website style.

The effect is as follows:

It is not very nice. I hope you will not lose bricks. It will not hurt your head ~ -_-~

CSS style sheet:

/* Aspnetpager style power by http://www.edweb.cn */
. 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 {
Border: 1px solid # cccccc;
Display: block;
Overflow: hidden;
Float: left;
Margin: 0 5px;
Padding: 1px 6px;
}
. Pager A: hover {border: 1 solid red; Background-color: #993399; color: # ffffff; margin: 0 5px; padding: 1px 6px ;}

Call method: Add a div package outside the paging control to directly call




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.