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

后端 未结 11 1062
广开言路
广开言路 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

    this is proper code if you want to first child li resize of other css.

    
    

    in html file.

            
      1. my text 1.

      2. my text 2.

提交回复
热议问题