[英]autoClose of tooltipster is not working
在頁面加載時,工具提示顯示,但是除非用戶單擊工具提示內容中的鏈接,否則我希望它停留在那里。 問題是,當我將鼠標懸停在工具提示上並在不單擊鏈接的情況下移至工具提示之外時,工具提示將關閉(我認為autoClose失敗)。
如何防止關閉?
$(document).ready(function(){
$(".tooltip1").tooltipster ({
theme: '.tooltipster-light',
position: 'right',
animation: 'grow',
maxWidth: '160',
autoClose: false,
interactive: true,
contentAsHTML: true,
//timer: 10000,
delay: 1000,
content: '<a href="notified" class="tooltip_display" data-remote="true" style="color:#0988E4"><u>Do not show again</u></a>',
});
$(".tooltip1").tooltipster("show");
});
我遇到了同樣的問題,但是幾分鍾后,我發現我的工具提示版本太舊了,我所要做的就是更新它,並且autoClose起作用了……嘗試
我已使用代碼更新了jsfiddle並添加了以下內容以將鼠標懸停在工具提示上:
// Hide on hover
$(".tooltip1").hover(function(){
$(this).tooltipster('hide');
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.