这是代码:
HTML:
<img src="..." />
// other stuff
<div id="image">
<a href="" > bla bla bla </a>
<a href="" > ble ble ble </a>
</div>
CSS:
#image a:hover{color:green;}
我要这个:
当用户将鼠标放在图像上时,id 为“image”的 div 中的所有链接都会变为绿色(就像用户将鼠标放在链接上一样。)。
如果可能的话,我更喜欢只使用 CSS。