gpt4 book ai didi

jQuery qTip 只出现一次

转载 作者:行者123 更新时间:2023-12-01 03:21:01 26 4
gpt4 key购买 nike

<link rel="stylesheet" href="/js/jquery.qtip.css" type="text/css" />
<script type="text/javascript" src="/js/jquery.qtip.js"></script>
<script type="text/javascript" language="javascript">
$(document).ready(function () {
$('a.link').qtip({
content: {
text: function (api) {
return $(this).attr('qtip-description');
},
title: {
text: function (api) {
return $(this).attr('qtip-title');
}
}
},
position: {
my: 'bottom center',
at: 'top center'
},
style: {
classes: 'ui-tooltip-shadow ui-tooltip-light'
}
});
});
</script>

<a href="#" id="linkRSS" target="_blank" class="link" qtip-title="Title" qtip-description="Description" aria-describedby="ui-tooltip-6">Link</a>

我在页面上有大约 500 个链接,其中包含要在 qTip 中显示的文本和描述属性,当我悬停鼠标时 qTip 只出现一次,第二次悬停时什么也没有发生,甚至不存在错误。

链接在页面加载时加载,加载后我对它们不执行任何操作,无论如何我尝试使用 jQuery live 事件,但这没有帮助。

我使用来自谷歌 CDN 的 jQuery 1.7.1。那么我的代码有什么问题吗?

PS:哇哦!我刚刚注意到demoes on qTip site也只开火一次。我真的很困惑,为什么会这样?

最佳答案

似乎这是最新版本的错误。请参阅https://github.com/Craga89/qTip2/issues/328 .

它可能很快就会被修复,所以我要么等待下一个版本,要么下载旧版本。

关于jQuery qTip 只出现一次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9966331/

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