Etherpad-lite 有序列表格式



我想分别使用十进制、高阿尔法、下阿尔法、上罗马和下罗马作为前五个级别。我尝试通过在pad中编写CSS来做到这一点.css

.list-number1 li:before {
content: counter(first)") " ;
counter-increment: first;
list-style-type: lower-alpha;
}

我只尝试了一个进行测试,但没有用。我想在计数器之后控制角色,使用content") "可以正常工作,但list-style-type似乎在这里不起作用。有人可以指出我正确的方向吗?

这对我有用

.list-number1 li:before {
content: counter(first, decimal)". " ;
counter-increment: first;
}
.list-number2 li:before {
content: counter(second, upper-alpha)") " ;
counter-increment: second;
}
.list-number3 li:before {
content: counter(third, lower-alpha)") " ;
counter-increment: third;
}
.list-number4 li:before {
content: counter(fourth, upper-roman)") " ;
counter-increment: fourth;
}
.list-number5 li:before {
content: counter(fifth, lower-roman)") " ;
counter-increment: fifth;
}

最新更新