Change bullets color of an HTML list without using span
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was wondering if there is a way to change the color on the bullets in a list. I have a list like this: House Car Garden It is not possible for me to insert anything in the li's such as a 'span' og a 'p'. So can I change the color of the bullets but not the text in some smart way? 回答1: If you can use an image then you can do this. And without an image you won't be able to change the color of the bullets only and not the text. Using an image li { list-style-image: url(images/yourimage.jpg); } See list-style-image Without using an image Then