CSS: image link, change on hover

前端 未结 8 2177
故里飘歌
故里飘歌 2020-11-29 17:48

I have an image that is a link. I want to show a different image when the user hovers over the link.

Currently I\'m using this code:



        
8条回答
  •  死守一世寂寞
    2020-11-29 18:36

    You could do the following, without needing CSS...

    
    

    Example: https://jsfiddle.net/jord8on/k1zsfqyk/

    This solution was PERFECT for my needs! I found this solution here.

    Disclaimer: Having a solution that is possible without CSS is important to me because I design content on the Jive-x cloud community platform which does not give us access to global CSS.

提交回复
热议问题