gpt4 book ai didi

jquery - 为什么 Tipsy jQuery 插件对我不起作用?

转载 作者:太空宇宙 更新时间:2023-11-04 05:01:48 25 4
gpt4 key购买 nike

我在这里使用最新版本的 Tipsy:https://github.com/jaz303/tipsy

我包括 jquery.tipsy.jstipsy.css,这是我的 html,a href 是一张图片:

<div class="social">
<ul id="social">
<li class="vimeo" title="Vimeo">
<a href="#" class="vimeo" title="Vimeo"></a>
</li>
</ul>

和 jQuery:

$(function() {
$('.vimeo').tipsy({
trigger: 'hover',
fade: true,
gravity: 'n'}
);
});

为什么这根本不显示任何内容?

最佳答案

因为您没有在 anchor 标签中使用任何文本

<div class="social">
<ul id="social">
<li class="vimeo" title="Vimeo">
<a href="#" class="vimeo" title="Vimeo"></a>
</li>
</ul>

在这里放点东西>>

   <a href="#" class="vimeo" title="Vimeo">HERE</a>

你需要检查这个:http://jsfiddle.net/f4RTs/

你的 lia 标签也有相同的类,所以你会在悬停时看到两个标题

关于jquery - 为什么 Tipsy jQuery 插件对我不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11366193/

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