2017-08-25 18 views
0

我想分別對前五個級別使用十進制,上半角,下半角,上半角和下半角。我試圖通過在pad.css中編寫CSS來做到這一點。Etherpad-lite有序列表格式

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

我試過一個測試,但它沒有工作。我想控制字符後,工作正常的計數器") "使用contentlist-style-type似乎並沒有在這裏工作。有人能指引我走向正確的方向嗎?

回答

0

這爲我工作

.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; 
}