HTML + CSS: Ordered List without the Period?

后端 未结 6 1915
再見小時候
再見小時候 2020-11-27 03:05

I think the answer to this question is no... but does anyone know of a an HTML/CSS way to create an ordered list without a period after the numbers? Or, alternatively, to sp

6条回答
  •  悲&欢浪女
    2020-11-27 03:23

    Here is the solution

    Number nested ordered lists in HTML

    All you have to to is change a little bit here

    ol li:before {
                    content: counter(level1) " "; /*Instead of ". " */
                    counter-increment: level1;
                }
    

    ^^

提交回复
热议问题