html直接分页的样式,HTML分页样式「建议收藏」

html直接分页的样式,HTML分页样式「建议收藏」.container{background:#fdfdfd;padding:1rem;margin:3remauto;border-radius:0.2rem;counter-reset:pagination;text-align:center;}.container:after{clear:both;content:””;display:table;}.container…

大家好,又见面了,我是你们的朋友全栈君。

.container {

background: #fdfdfd;

padding: 1rem;

margin: 3rem auto;

border-radius: 0.2rem;

counter-reset: pagination;

text-align: center;

}

.container:after {

clear: both;

content: “”;

display: table;

}

.container ul {

width: 100%;

}

.large {

width: 45rem;

}

.pagination ul, li {

list-style: none;

display: inline;

padding-left: 0px;

}

.pagination li {

counter-increment: pagination;

}

.pagination li:hover a {

color: #fdfdfd;

background-color: #1d1f20;

border: solid 1px #1d1f20;

}

.pagination li.active a {

color: #fdfdfd;

background-color: #1d1f20;

border: solid 1px #1d1f20;

}

.pagination li:first-child a:after {

content: “”;

}

.pagination li a {

border: solid 1px #d6d6d6;

border-radius: 0.2rem;

color: #7d7d7d;

text-decoration: none;

text-transform: uppercase;

display: inline-block;

text-align: center;

padding: 0.5rem 0.9rem;

}

.pagination li a:after {

content: ” ” counter(pagination) ” “;

}

.large li a {

display: none;

}

.large li:first-child a {

display: inline-block;

}

.large li:first-child a:after {

content: “”;

}

.large li:nth-last-child(2) a {

display: inline-block;

}

.large li:nth-last-child(3) {

display: inline-block;

}

.large li:nth-last-child(3):after {

padding: 0 1rem;

content: “…”;

}

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/160613.html原文链接:https://javaforall.net

赞 (0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • pycharm减少缩进快捷键_pycharm的缩进

    pycharm减少缩进快捷键_pycharm的缩进整体缩进:鼠标拉选住代码块,按下tab键。反向缩进:鼠标拉选住代码块,按下tab+shift键。

    2022年8月27日
  • 几款比较有名的刷流量软件「建议收藏」

    几款比较有名的刷流量软件「建议收藏」谨记:刷流量一直是提高网店或者网站不是很正规的方法,虽然流量很快会上去,但也要合理使用或使用其他正规的方法提高流量!为网站刷流量,提高网站的排名,就要用到刷流量软件,主要有流量精灵,飞速流量专家和天河流量王是三款比较有名的流量软件,下面把它们的功能比较一下!      第一款软件飞速流量专家      该款软件同样采用互点积分制,特点就是该软件支持纯网赚用户,就是说

    2022年9月29日
  • 小程序商城订单支付界面(小程序)

    小程序商城订单支付界面(小程序)wxml在此:<!–pages/cart/cart.wxml–><!–当数据为空时–><viewclass=’noData’wx:if=”{{dataList.length==0}}”><viewclass=’noDataImg’><imagesrc=’/images/cart-nodata…

    2022年5月10日
  • anaconda和python版本对照表

    anaconda和python版本对照表python2 python3 anaconda2/3 2.7.14 3.6.5 5.2.0 2.7.14 3.6.4 5.1.0 2.7.14 3.6.3 5.0.1 2.7.13 3.6.2 5.0.0 2.7.13 3.6.1 4.4.0 2.7.13 3.6.0 4.3.1 2….

    2022年5月28日
  • 用python提取字符串的中英文——建议收藏反复观看

    用python提取字符串的中英文——建议收藏反复观看python中提取字符串的中文或英文re中的sub函数提取中文提取英文提取数字re中的findall函数提取中文提取英文提取数字re中的compile函数同时匹配中英文数字去除其他字符前言:提取中英文是我们在做数据处理时候经常使用的,最高效的做法就是通过正则判断了,下面是我写的笔记,希望对你有用re中的sub函数使用Python的re模块,re模块提供了re.sub用于替换字符串中的匹配项。re.sub(pattern,repl,string,count=0)参数说明:

    2022年5月20日
  • 线性回归最小二乘法公式推导「建议收藏」

    线性回归最小二乘法公式推导「建议收藏」#1.符号表示首先我们将训练样本的**特征矩阵X**进行表示,其中N为样本个数,p为特征个数,每一行表示为每个样本,每一列表示特征的每个维度:

    2022年5月13日

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号