开发者

Why isnt next:hover turning the text red?

开发者 https://www.devze.com 2023-04-01 04:09 出处:网络
On the site http://go开发者_Go百科piswrong.comthe class .next:hover should turn the text \"What should GOPisWrong.com say next?\" red on hover, but it does not. Why?There\'s an inline style with a col

On the site http://go开发者_Go百科piswrong.com the class .next:hover should turn the text "What should GOPisWrong.com say next?" red on hover, but it does not. Why?


There's an inline style with a color that needs getting rid of overriding the hover style:

<a class="next" style="margin-left:300px;font-family:sans-serif;color:#000000;"


You have to remove the "color:#000000" from the link's style attribute.


Because the color of the element is determined inside the style tag of the element itself. Remove that from the style tag, and put it into the stlyesheet and it should work fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号