您的位置:首页 > 其它

关于在同一个DIV下的Hover效果问题

2013-12-10 16:19 316 查看
例子:

(function bindColumnRowHoverEvent(){
$('.ticket_list_body .work_product').live('mouseenter', function(e){
e.stopPropagation();
$(this).hover(function() {
if ($(this).find('.row_hover').length == 0){
$(this).addClass('row_hover');
}
},
function() {
$(this).removeClass('row_hover');
});
});
$('.ticket_list_body .task').live('mouseenter', function(e){
e.stopPropagation();
$(this).hover(function() {
$(this).closest('.work_product').removeClass('row_hover');
$(this).addClass('row_hover');
},
function() {
$(this).removeClass('row_hover');
if($(this).closest('.work_product').data('events').mouseenter){
$(this).closest('.work_product').addClass('row_hover');
}
});
});
}());
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: