How to create a collapsing tree table in html/css/js?

后端 未结 6 1084
故里飘歌
故里飘歌 2020-11-30 19:46

I have some data to display that is both tabular and hierarchical. I\'d like to let the user be able to expand and collapse the nodes.

Sort of like this, except func

6条回答
  •  -上瘾入骨i
    2020-11-30 20:26

    HTML 5 allows summary tag, details element. That can be used to view or hide (collapse/expand) a section. Link

提交回复
热议问题