Display Image On Text Link Hover CSS Only

后端 未结 6 1549
感情败类
感情败类 2020-12-13 05:53

I have a text link. When the user hovers over the text link, I want an image to be displayed elsewhere on the page. I want to do this using css. I thought it could be done s

6条回答
  •  星月不相逢
    2020-12-13 06:01

    It can be done using CSS alone. It works perfect on my machine in Firefox, Chrome and Opera browser under Ubuntu 12.04.

    CSS :

    .hover_img a { position:relative; }
    .hover_img a span { position:absolute; display:none; z-index:99; }
    .hover_img a:hover span { display:block; }
    

    HTML :

    
    

提交回复
热议问题