How to control size of list-style-type disc in CSS?

后端 未结 11 1196
暗喜
暗喜 2020-12-23 17:24

My HTML first:

11条回答
  •  礼貌的吻别
    2020-12-23 17:33

    If you choose to use inline SVG to render your bullets, you can use width and height properties to control their size:

    ul {
      list-style-image: url("data:image/svg+xml;utf8,");
    }
    
    .x {
      list-style-image: url("data:image/svg+xml;utf8,");
    }
    
    .x_alternative {
      list-style-image: url("data:image/svg+xml;utf8,");
    }
    • foo
    • bar
    • baz
    • foo
    • bar
    • baz
    • foo
    • bar
    • baz

    Click here for an easy explanation of the viewBox.

提交回复
热议问题