【发布时间】:2015-07-17 10:08:22
【问题描述】:
我正在尝试让 .image img 在描述框悬停时淡出。
$(".description-box").on({
mouseover: function () {
clearTimeout(timer);
$(".image img").fadeOut();
},
mouseout : function () {
timer = setTimeout(function () {
$(".image img").fadeIn();
}, 100);
}
});
编辑
【问题讨论】:
-
错误是什么?另外,请向我们展示您的 HTML 代码
-
你能加个小提琴吗?
-
为什么不用css? jsfiddle.net/5nqLkm3f/1
-
@Rachel Gallen 我想在该照片上设置一个 div 以触发该照片的褪色
标签: javascript jquery html css