效果图:
代码
ul {
list-style: none;
list-style-type: none;
counter-reset: sectioncounter;
li{
margin-bottom: 12px;
}
}
ul li:before {
content: counter(sectioncounter) "、";
counter-increment: sectioncounter;
font-weight: bold;
color: #fa9914;
font-family: HelveticaNeue-Bold, HelveticaNeue;
}
更详细请戳
https://blog.csdn.net/abeetle/article/details/41246741