Skip ordered list item numbering

前端 未结 5 2068
轮回少年
轮回少年 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:19

    The simplest way is to remove the list marker from the item to be skipped and set the number of the next item using the value attribute (which will not be deprecated/obsolete in HTML5). Example:

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

提交回复
热议问题