css 连续编号

 

 

.orderList:nth-of-type(1) {
          counter-reset: ol;
      }
      .orderList > li {
        counter-increment: ol;
      }
      .orderList > li::marker {
        content: counter(ol) ". ";
      }
posted @ 2024-05-28 11:12  百里水上  阅读(11)  评论(0)    收藏  举报