【发布时间】:2015-01-04 20:28:59
【问题描述】:
我正在测试我的网站,添加一些 jQuery 交互。我创建了这个脚本:
$(document).ready(function() {
$('.flash').on({
mouseenter: function (
$('.flash').hide();
},
mouseleave: function {
$('.flashOn').show();
}
});
非常简单地触发闪光灯:http://www.paolobergomi.it/sitob/index.html 但实际上我不知道为什么不工作。我调试了很多,但都是一样的。如您所见,该 div 已正确放置在 HTML 中,脚本没问题(我认为),但它不起作用,欢迎提供任何线索。
【问题讨论】:
标签: jquery image mouseenter mouseleave