在这段代码中:
<div id="Container"> <span class='first'>First</span> <span class='second'>Second</span> <span class='third'>Third</span> </div>
我希望在以下情况下改变颜色:悬停.
> IF(.first:hover)THEN .first {color:red; }
> IF(.second:hover)THEN .first,.second {color:red; }
> IF(.third:hover)那么.first,.second,.third {color:red; }
没有JS,这可能吗?我可以接受CSS Hacks 原文链接:/html/227378.html