开发者

Multilevel list in html

开发者 https://www.devze.com 2023-03-30 05:13 出处:网络
I want to have automatically created the numbering of a list of items in html, something like this: 1. Heading 1

I want to have automatically created the numbering of a list of items in html, something like this:

1. Heading 1
   Text
1.1 Heading 1.1
   Text
2. Heading 2
  Text
2.1 Heading 2.1
   Text
2.2 Heading 2.2
   Text

It is the same as using Word, Latex or any other that allows you setting styles.

Any JavaScript, CSS, 开发者_如何学运维etc?


This can be done through css/HTML

The following site has a nice tutorial on how to: http://doctype.com/make-ordered-list-go-up-111213-instead-123


I think it gets down to some javascript. ordered lists etc. will not help you out here. Maybe you can write some smart script using jquery based on child/parent logic that does the trick for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消