How do I use CSS to show different pagination effects at the bottom of the page? (Multiple style examples)

Source: Internet
Author: User
Most sites are made up of multiple pages, and rarely consist of a single page. So many pages need to be related to paging functionality. This article will introduce you to the CSS paging settings and CSS page code to implement the implementation of the specific operation.

One simple CSS pagination code specific examples are as follows:

<! DOCTYPE html>

Effects such as:


Second, CSS pagination effect--click and hover page style specific code examples are as follows:

<H2>CSS pagination Effect--click and hover over page style 

Style code:

ul.pagination {    display:inline-block;    padding:0;    margin:0;} Ul.pagination li {display:inline;} Ul.pagination Li a {    color:black;    Float:left;    padding:8px 16px;    Text-decoration:none;} Ul.pagination Li a.active {    background-color: #4CAF50;    Color:white;} Ul.pagination Li A:hover:not (. Active) {background-color: #ddd;}

Effects such as:

Note: If you click the current page, you can use. Active to set the time page style, which you can use to modify the style using the: hover selector.

: Hover the special style that is added when you move the mouse over the link. Can be used for all elements, not just links.

: Link Selector Sets page link styles that have not been visited

: visited selector sets the style of the page link you have visited: the active selector settings when you click the link style.

Third, CSS page style--round corner style

The main difference here is that the Border-radius attribute is involved.

Ul.pagination Li a {    border-radius:5px;} Ul.pagination Li a.active {   border-radius:5px;}

Effects such as:

Note:

The Border-radius property is a shorthand property for setting four Border-*-radius properties. This property allows you to add rounded borders to elements!

This article about CSS page style introduced three kinds of situations for everyone to refer to, I hope to have the help of friends!

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