How to colour the list-style-type auto-generated numbers?

前端 未结 9 1251
遥遥无期
遥遥无期 2020-12-05 07:03

I\'m using the following list:

  1. This is the first footnote...
  2. &
9条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-05 07:59

    These days you can just use ::marker;

    Example:

    li::marker {
      color: #f90;
    }
    

    More here, including the browser compat table: https://developer.mozilla.org/en-US/docs/Web/CSS/::marker#Browser_compatibility

提交回复
热议问题