Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery live click的Safari问题_Jquery_Browser_Safari - Fatal编程技术网

jQuery live click的Safari问题

jQuery live click的Safari问题,jquery,browser,safari,Jquery,Browser,Safari,我在下拉列表中的项目上使用实时单击事件: $('.list').live('click', function() { var listClass = $(this).attr('title'); $('.post').fadeOut('fast'); $('.post.'+listClass).delay(300).fadeIn(1000); }); 似乎不是在所有浏览器中都能工作,而不是在ff中 有什么建议吗?可能有问题 $('.post .'+listClass).dela

我在下拉列表中的项目上使用实时单击事件:

$('.list').live('click', function() {
var listClass = $(this).attr('title');
  $('.post').fadeOut('fast');
  $('.post.'+listClass).delay(300).fadeIn(1000);    
});
似乎不是在所有浏览器中都能工作,而不是在ff中

有什么建议吗?

可能有问题

$('.post .'+listClass).delay(300).fadeIn(1000);
在css中添加:

.list{cursor:pointer}
.list{cursor:pointer}errr,对不起,只能在FF中使用…也许可以使用.bind()实现它?或者尝试更新jquery版本