2017-08-25 20 views
0

最初の5つのレベルにそれぞれ10進数、上位アルファ、下位アルファ、上位ローマン、下位ローマンを使用したいとします。私はちょうど1テスト用を試みたが、それはうまくいきませんでしたpad.cssにCSSを記述することでEtherpad-lite順序付きリストの書式

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

これをやってみました。私はcontentを使って") "を入れてもうまく動作したカウンターの後でキャラクターをコントロールしたかったが、ここでは動作していないようだ。誰かが私に正しい方向を向けることができますか?

答えて

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; 
} 
を働きました
関連する問題