gpt4 book ai didi

javascript - iPad 悬停效果淡出

转载 作者:行者123 更新时间:2023-11-30 13:28:44 25 4
gpt4 key购买 nike

我尝试使用 fadeIn 和 fadeOut 效果,如您在此页面中所见: http://www.lifetime-watches.com/gal-w.html

var titleString = $(this).find('a').attr("title");
$("#title").html(titleString).fadeIn(100);
;

因此,当他们运行脚本时,图像的标题会淡入一个 div 中。

但问题是当这个页面在 iPad 上打开时,悬停功能不起作用(因为显然它们没有悬停)并且 div 不会淡出。

有什么替代方案?任何帮助表示赞赏。谢谢。

最佳答案

jQuery Hoverable Plugin :

unifies touch and mouse events over different platforms like desktops and mobile devices with touchscreens

对于您的应用来说,这可能是一个不错的选择。

关于javascript - iPad 悬停效果淡出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7543306/

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