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!