我是使用 CSS 列表的迟到者。我已使用此代码创建列表,其中第一个缩进为 az,第二个缩进为 roman、i、ii、iii、iv 等:
/* SF/2013-10-16; this code will create 1.a.i structure similar perh. to a legal document.. */
ol > li > ol {
list-style-type: lower-alpha;
}
ol > li > ol > li > ol {
list-style-type: lower-roman;
}
但我想知道是否有任何方法可以使列表索引的字体(1、2、3、a、b、c、i、ii、iii)成为与实际列表文本本身不同的字体 - 优雅地 - 并且更改列表索引的大小或颜色。谢谢你的帮助!