开发者

Multilevel list in html

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜