从stackoverflow找的(stackoverflow真的给力)废话不多说直接上代码,用到的是css的counter计数器,关于CSS counter的学习:https://www.zhangxinxu.com/wordpress/2014/08/css-counters-automatic-number-content/
ol {
counter-reset: item }
li{
display: block }
li:before {
content:
从stackoverflow找的(stackoverflow真的给力)废话不多说直接上代码,用到的是css的counter计数器,关于CSS counter的学习:https://www.zhangxinxu.com/wordpress/2014/08/css-counters-automatic-number-content/
ol {
counter-reset: item }
li{
display: block }
li:before {
content: