Customize list item bullets using CSS

前端 未结 12 1223
感动是毒
感动是毒 2020-12-15 03:17

Is it possible to change the size of an

  • element\'s bullet?

    Take a look at the code below:

    li {
        list-sty         
    
    
            
  • 12条回答
    •  半阙折子戏
      2020-12-15 04:02

      You can wrap the contents of the li in another element such as a span. Then, give the li a larger font-size, and set a normal font-size back on the span:

      http://jsfiddle.net/RZr2r/

      li {
          font-size: 36px;
      }
      li span {
          font-size: 18px;
      }
      
      • Item 1
      • Item 2
      • Item 3

    提交回复
    热议问题