Can ordered list produce result that looks like 1.1, 1.2, 1.3 (instead of just 1, 2, 3, …) with css?

后端 未结 11 1003
广开言路
广开言路 2020-11-22 10:13

Can an ordered list produce results that looks like 1.1, 1.2, 1.3 (instead of just 1, 2, 3, ...) with CSS? So far, using list-style-type:decimal has produced on

11条回答
  •  [愿得一人]
    2020-11-22 10:58

    I have some problem when there are two lists and second one is inside DIV Second list should start at 1. not 2.1

    1. lorem
    2. lorem ipsum
    1. lorem (should be 1.)
    2. lorem ipsum ( should be 2.)

    http://jsfiddle.net/3J4Bu/364/

    EDIT: I solved the problem by this http://jsfiddle.net/hy5f6161/

提交回复
热议问题