gpt4 book ai didi

php - Jquery Qtip 的奇怪问题,第一次鼠标悬停后工具提示无法正常工作

转载 作者:行者123 更新时间:2023-12-01 06:04:05 25 4
gpt4 key购买 nike

谁能告诉我我的代码有什么问题吗?第一次鼠标悬停时,qtip 工作正常,但第二次它显示 2 个工具提示,一个是我在标题属性中拥有的内容,另一个是在那个空的顶部。

$(document).ready(function() {
$(".tooltip").bind('mouseover', function() {
$(this).qtip({
overwrite: false,
show: {
ready: true
}
});
});
});

最佳答案

尝试将overwrite设置为true

Determines if, when the .qtip() method is called on an element with a qTip already present, the new one overrides (i.e. destroys) the old one. By default this is true.

即,如果设置为 false,则每次鼠标悬停都会创建一个新的 qtip。

关于php - Jquery Qtip 的奇怪问题,第一次鼠标悬停后工具提示无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8333822/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com