Is it possible to hide title when hovering image?

后端 未结 8 959
长情又很酷
长情又很酷 2020-12-21 18:30

This is my code:

\"\"

When I hover that image \"some title\" appears. Is it possib

8条回答
  •  没有蜡笔的小新
    2020-12-21 18:56

    It can be easily done as some answers point out, but knowing what you want to do with title, I would use a data-* custom attribute or attach the title with .data()

    
    

    or

    $('img').data('title', 'some title');
    

提交回复
热议问题