如何在 CSS3 中选择导航元素?
我希望能够制作一个导航元素 - 当悬停时 - 更改为我想要的颜色。
如
<nav>
<a href="#mainpage">first</a> // i want to make this word, when hovered, into #555
<a href="#secondpage">second</a> // i want to make this word, when hovered, into #444
<a href="#thirdpage">third</a> //i want to make this word, when hovered, into #643312
<a href="#fourthpage">fourth</a> //i want to make this word, when hovered, into #444
<a href="#fifthpage">fifth</a> // i want to make this word, when hovered, into #666
</nav>
我该怎么做呢?
我正在阅读有关 CSS3 选择器的信息,但我没有看到任何解决方案(至少现在还没有),所以我想我会在 Stack Overflow 上得到更快的答案。我会继续搜索,看看是否有任何结果。