css给列表添加序号时间:2023-03-09 22:18:21 .middle ul{ counter-reset: show-list; } li{ padding-left: 30px; line-height: 1.3; position: relative; counter-increment: item; } li:before{ content: counter(item)"."; display: block; position: absolute; left: 12px; top:; }