我可能不再建议使用图像。我会坚持使用Unicode字符的方法,如下所示:
li:before {
content: "\2605";
}
我可能会选择图像背景,它们更
有效,
通用且对跨浏览器友好。
这是一个例子:
<style type="text/css">
ul {list-style:none;} /* you should use a css reset too... ;) */
ul li {background:url(images/icon_star.gif) no-repeat 0 5px;}
</style>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>