gpt4 book ai didi

jquery - 使用 hover() jquery 在 css 中闪烁文本

转载 作者:行者123 更新时间:2023-11-28 09:49:36 25 4
gpt4 key购买 nike

因为起初我不知道如何为这个问题起一个好的标题。您可以通过此处的演示更好地了解问题 http://jsfiddle.net/5Cz5D/

当我将鼠标悬停在 img 上时,文字出现了,但是当我将光标移到文字上时,它变成了闪烁..

我使用了以下 jQuery 片段来防止它闪烁,但没有成功。

$(".profilePicture").hover(function () {
var $this = $(this).next('a');
$this.show();
}, function () {
var $this = $(this).next('a');
$this.hide();
});

最佳答案

您已在 profile_picture div 之外指定了 percentage 类..

您可以通过在 profile_picture div 中嵌套 percentage 类来解决这个问题。

updated fiddle

关于jquery - 使用 hover() jquery 在 css 中闪烁文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19347646/

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