0
我想列出一個列表節點和列表項目在徘徊時變爲紅色的列表。以下是示例代碼:如何更改列表節點的顏色
<style>
ul li a:hover {
color: red;
}
</style>
<ul>
<li><a href="">1</a></li>
<li><a href="">2</a></li>
</ul>
使用此代碼時,數字在盤旋時變爲紅色,但節點沒有。我怎樣才能改變節點的顏色?
可能的複製,而無需使用任何圖像或span標籤](http://stackoverflow.com/questions/5306640/how-to-set-bullet-colors-in-ul-li-html-lists-via-css-without-using-any-images-or) –