CSS styling a table of contents

后端 未结 1 1764
悲哀的现实
悲哀的现实 2021-01-18 16:29

I\'m trying to replicate the following table of contents:

\"\"

I\'ve gotten pretty close with the following

相关标签:
1条回答
  • 2021-01-18 17:02

    Here is JSBin

    Use display: inline; instead of display: inline-block;

    in your list li span{...} CSS class

    list li span {
        display: inline;
        background-color: rgb(255, 255, 255);
        padding-right: 5px;
    }
    
    0 讨论(0)
提交回复
热议问题