Customize list item bullets using CSS

前端 未结 12 1240
感动是毒
感动是毒 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 03:52

      Depending on the level of IE support needed, you could also use the :before selector with the bullet style set as the content property.

      li {  
        list-style-type: none;
        font-size: small;
      }
      
      li:before {
        content: '\2022';
        font-size: x-large;
      }
      

      You may have to look up the HTML ASCII for the bullet style you want and use a converter for CSS Hex value.

    提交回复
    热议问题