div+css实现12种分页效果代码
代码语言:html
所属分类:布局界面
代码描述:div+css实现12种分页效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<style>
html, body{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
color: #222;
}
a{
text-decoration: none;
}
p, li, a{
font-size: 14px;
}
/* GRID */
.twelve { width: 100%; }
.eleven { width: 91.53%; }
.ten { width: 83.06%; }
.nine { width: 74.6%; }
.eight { width: 66.13%; }
.seven { width: 57.66%; }
.six { width: 49.2%; }
.five { width: 40.73%; }
.four { width: 32.26%; }
.three { width: 23.8%; }
.two { width: 15.33%; }
.one { width: 6.866%; }
/* COLUMNS */
.col {
display: block;
float:left;
margin: 1% 0 1% 1.6%;
}
.col:first-of-type {
margin-left: 0;
}
.container{
width: 100%;
max-width: 940px;
margin: 0 auto;
position: relative;
text-align: center;
}
/* CLEARFIX */
.cf:before,
.cf:after {
content: " ";
display: table;
}
.cf:after {
clear: both;
}
.cf {
*zoom: 1;
}
/* GENERAL STYLES */
.pagination{
padding: 30px 0;
}
.pagination ul{
margin: 0;
padding: 0;
list-style-type: none;
}
.pagination a{
display: inline-block;
padding: 10px 18px;
color: #222;
}
/* ONE */
.p1 a{
width: 40px;
height: 40px;
line-height: 40px;
padding: 0;
text-align: center;
}
.p1 a.is-active{
background-color: #2ecc71;
border-radius: 100%;
color: #fff;
}
/* TWO */
.p2 .is-active li{
font-weight: bold;
border-bottom: 3px solid #2ecc71;
}
/* THREE */
.p3 .is-active{
background-color: #2ecc71;
color: #fff;
}
/* FOUR */
.p4 a{
width: 40px;
height: 40px;
line-height: 40px;
border-radius: 100%;
padding: 0;
text-align: center;
position: relative;
border: 3px solid #2ecc71;
}
.p4 .is-active:before{
content: "";
width: 30px;
height: 30px;
border-radius: 100%;
background-color: #2ecc71;
position: absolute;
top: 5px;
left: 5px;
}
/* FIVE */
.p5 a{
width: 30px;
height: 5px;
padding: 0;
margin: auto 5px;
background-color: rgba(46, 204, 113, 0.4);
}
.p5 .is-active{
background-color: #2ecc71;
}
/* SIX */
.p6 a{
width: 30px;
height: 30px;
border-radius: 100%;
padding: 0;
margin: auto 5px;
text-align: center;
position: relative;
background-color: rgba(46, 204, 113, 0.4);
}
.p6 .is-active{
background-color: #2ecc71;
}
/* SEVEN */
.p7 a{
border: 3px solid #2ecc71;
margin: auto 5px;
color: #2ecc71;
font-weight: bold;
}
.p7 .is-active{
background-color: #2ecc71;
color: #fff;
}
/* EIGHT */
.p8 a{
background-color: #2ecc71;
margin: auto 5px;
color: #fff;
font-weight: bold;
border: 3px solid #2ecc71;
}
.p8 .is-active{
background-color: #fff;
color: #2ecc71;
}
/* NINE */
.p9 a{
width: 30px;
height: 30px;
line-height: 30px;
padding: 0;
text-align: center;
margin: auto 5px;
}
.p9 a.is-active{
border: 3px solid #2ecc71;
border-radius: 100%;
}
/* TEN */
.p10 a{
width: 30px;
height: 30px;
line-height: 30px;
padding: 0;
text-align: center;
margin: auto 5px;
}
.p10 a.is-active{
border: 3px solid #2ecc71;
}
/* ELEVEN */
.p11 a{
backgroun.........完整代码请登录后点击上方下载按钮下载查看
网友评论0