谁能告诉我我的代码有什么问题吗?第一次鼠标悬停时,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/