HTML list with different images as bullets

后端 未结 5 1100
北恋
北恋 2021-01-19 07:06

I know it is possible to set an image instead of the HTML default bullets:

list-style-image: url(...);

But I havent\'t found a way how I ca

5条回答
  •  余生分开走
    2021-01-19 07:30

    You need to use nth-child Property

    CSS

    li:nth-child(1){list-style-image:url(image)}
    

    Here is the demo http://jsfiddle.net/5VB2u/

提交回复
热议问题