需要显示某个列表样式
答
有一个在list-style-type
财产没有这样的子弹,但幸好还有其他方法可以做到这一点:
- 的
list-style-image
属性 - 只是指定图片的网址。 - 的
:after
或:before
伪类:
li{
list-style-type: none
}
li:before{
content: "➢"
}
答
我将使用这个CSS:
ul{
list-style-image: url('yourlisticon.gif');
}