0
如果用户点击“添加到”按钮,有工具提示器用于显示反馈。工具提示器在几秒钟后自动关闭。现在我需要一个解决方案,如果鼠标悬停在工具提示栏上(悬停),自动关闭功能将停用。这可能吗?工具提示器不自动关闭悬停
我的代码:
$('.mgu-ekl-info').tooltipster({
functionBefore: function(instance, helper){
$.each($.tooltipster.instances(), function(i, instance){
instance.close();
});
},
contentCloning: true,
timer: 2500,
trigger: 'click',
'maxWidth': 280,
'minHeight': 280,
animation: 'grow',
interactive: true,
arrow: false,
distance: -10,
contentAsHTML: true,
theme: 'tooltipster-shadow'
});
感谢您的帮助。
欢呼 托马斯
您应该制作一个包含所有相关代码(css html jquery)的工作片段,以便可以复制问题。这样我们可以更好地帮助你 –
备注:停止使用'contentAsHTML',因为在这里它毫无用处,请阅读文档以了解它的用途。 –