Skip ordered list item numbering

前端 未结 5 2037
轮回少年
轮回少年 2021-02-18 22:34

I have an ordered list and I\'d like to skip the number output from a particular item.

Traditional output:

1. List item
2. List item
3. List item
4. List         


        
5条回答
  •  渐次进展
    2021-02-18 23:21

    One thing I tried that seemed to work was just adding a font-size: 0. This could be applied to the aforementioned "skip" class.

    Admittedly, this solution lacks some HTML purity, but is quite simple.

提交回复
热议问题