作者:christinezzy850 | 来源:互联网 | 2023-05-17 07:49
I have this code:
我有这个代码:
http://jsfiddle.net/pAgS9/ in jsfiddle
http://jsfiddle.net/pAgS9/在jsfiddle中
I want that If i hover the li
area, the color of a
text should change to white. Now if i hover, it is still black and only if i hover the a
, then it becomes white.
我希望如果我悬停在li区域,文本的颜色应该变为白色。现在,如果我盘旋,它仍然是黑色的,只有当我盘旋a,它才会变成白色。
how can i achieve this in css?
我怎样才能在CSS中实现这一目标?
5 个解决方案