Display nested list like a table

后端 未结 1 763
悲&欢浪女
悲&欢浪女 2021-01-28 06:03

There is a nested list, which looks like this:

Main-Title
    Title 1
        Element 1
        Element 2
        Element 3
    Title 2
        Element 4
         


        
相关标签:
1条回答
  • 2021-01-28 06:40

    yes, reset sub li display:

    li {
      display: inline-flex;
    }
    li li {
      display:flex;
    }
    

    https://jsfiddle.net/mkc4uh9y/2/

    0 讨论(0)
提交回复
热议问题