Show text when the cursor hovers over an image

后端 未结 6 564
轮回少年
轮回少年 2021-01-03 02:45

I am trying to accomplish of the task of displaying text below an image when you hover over it. I do not want to use the title attribute, because I want to be a

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-03 03:28

    give your text inside a div and then show that div on hover of image like this..

    Hiiii
    $('#img').live('mouseover', function(){ $('#div').show(); });

提交回复
热议问题