2012-03-16 73 views
1

我试图找到一种方法在CKEDITOR中实现虚线列表(“ - ”)。 标准html只允许使用正方形和圆圈。
有没有办法能够使用虚线样式的无序列表?在CKEDITOR中创建无序列表

回答

1

如果您不担心支持IE7及更早版本,则可以使用:before伪选择器来复制项目符号行为。

CSS:

ul.dashed li { 
    list-style: none; 
} 

ul.dashed li:before { 
    content: "- "; 
}​ 

HTML

<ul class="dashed"> 
    <li>Item 1</li> 
    <li>Item 2</li> 
    <li>Item 3</li> 
</ul> 
+0

非常感谢!它的工作:) – rushego 2012-03-16 12:41:43

+0

很高兴它为雅:) – 2012-03-16 12:48:10