Change how fast “title” attribute's tooltip appears

后端 未结 5 1221
攒了一身酷
攒了一身酷 2020-11-28 06:11

Is there a way to change how fast the tooltip from an element\'s \"title\" attribute? I\'d like it if the tooltip appeared immediately, but it seems to take a few seconds to

5条回答
  •  隐瞒了意图╮
    2020-11-28 07:06

    Jquery UI tooltip is extremely simple and customizable: Just download or include jquery UI in your page.

    If you want all the tooltips of your page to show immediately at hover, just use this:

    $(document).tooltip({show: null});
    

    Note that this applies to all elements that have a 'title' attribute. You can modify the selector to affect only a class, and set custom speed or effect:

    $('.yourClass').tooltip({show: {effect:"none", delay:0}});
    

提交回复
热议问题