html直接分页的样式,HTML分页样式「建议收藏」
大家好,又见面了,我是你们的朋友全栈君。
.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.cn/160613.html原文链接:https://javaforall.cn
相关文章
- HTML中设置背景图的两种方式「建议收藏」
- html、css 实现二级菜单「建议收藏」
- 图片下划线 html,HTML <U>下划线标签元素 HTML下划线标签「建议收藏」
- html语言添加下划线,HTML页面中怎么文本添加下划线?[通俗易懂]
- html refresh原理,HTML meta refresh 刷新与跳转(重定向)页面
- js数据转换为html,JavaScript怎么进行类型转换?「建议收藏」
- layui弹出层html,layer弹出层「建议收藏」
- html 的scor属性,scrollheight属性「建议收藏」
- html文本框鼠标离开事件,html鼠标事件_文本框事件「建议收藏」
- html中如何写系统时间,在HTML页面获取当前系统时间
- html左侧浮动广告代码,网站侧边栏广告固定浮动效果的实现「建议收藏」
- html表格空格符是什么,HTML中的空格符号是什么
- 分享 15 个 HTML 新特性,大多数人可能不知道,建议尽早使用上
- Linux 开发HTML的简单技巧(linux开发html)
- 让Linux灵活运行HTML:简单有效的方法(linux运行html)
- 文件Linux查看HTML文件的简单方法(linux查看html)
- HTML <html> 标签
- HTML与Oracle开启精彩的互联网之旅(html和oracle)
- Redis与HTML的不同之处(redis跟html区别)
- 注释的艺术——JS里直接写HTML,无需转义