【发布时间】:2020-11-06 18:02:22
【问题描述】:
在网站上,https://thearcadestick.com
底部分页包括数字之间的点。 如何删除点并只查看数字?
这是当前代码:
`span.page-numbers.current {
color: white !important;
background: #2d2d2d !important;}`
【问题讨论】:
-
.page-numbers.dots{}
在网站上,https://thearcadestick.com
底部分页包括数字之间的点。 如何删除点并只查看数字?
这是当前代码:
`span.page-numbers.current {
color: white !important;
background: #2d2d2d !important;}`
【问题讨论】:
.page-numbers.dots{}
你可以用 CSS 隐藏点
.page-numbers.dots {
display:none
}
但在这种情况下,最好也隐藏最后一个数字 - 这是列表中的倒数第二项:
.page-numbers li:nth-last-child(-n+2) {
display:none
}
【讨论】: