如何摆脱流浪»列表中的字符

时间:2012-10-03 16:54:20

标签: css

我的文档在每个列表元素的开头出现了迷路»。当我在浏览器中查看源时,该字符不在文档中 - 它只出现在屏幕上。

我怎样摆脱它?

我是否以某种方式使用list-style-postion

我在css中尝试了所有我能想到的东西:

list-style:none !important;
list-style-type:none !important;
list-style-image:none !important;

2 个答案:

答案 0 :(得分:1)

它可能是由:before伪元素添加的。

寻找像

这样的东西
li:before {
    ...
}

并将其删除

答案 1 :(得分:0)

这应该重置/清理列表

ul, ol, li, dl, dt, dd
{
padding: 0;
margin: 0;
list-style-type: none;
list-style-position: inside;
list-style-image: none;
}

查看是否有任何伪选择器用于添加它们。