开发者

qTip that stays open

Is it possible to create a tooltip that would stay open, even when mouse isn't hovering underlying element 开发者_如何学编程anymore?

I'm trying to change fixed to true and in beforeHide return false. That's not helping.


Make the "hide:" property blank (but you have to list it). For example:

show: 'mousehover',
hide: ''
...

Basically, it's waiting for an event literally named an empty string, which will never happen.

Disclaimer: I haven't tried this on all browsers, but I can vouch for Chrome. If you do a lot of testing, it'd be nice if you share the results!


Documentation for qTip somehow obscure. So basically it has to be called like that:

$(".mydiv").qtip(
                 api: {
                        beforeHide: function () {
                                return false;
                         }
                      },
                 hide: { fixed: true }
 );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜