我有一个表,我创建的飞行行:具有悬停帮助.live
$('#AjaxResultTable > tbody:last').append('<tr class="row"><td class="expandResult" title="Click to expand/collapse">+</td>' + id + name + suburb + state + zip + '</tr>').hide().fadeIn(200);
我想改变行的背景颜色,当我将鼠标悬停在他们改变回来时,我不是。
我试着用
$('#AjaxResultTable tr').hover(function() {
$(this).css('background-color', '#f5f5f5');
}, function() {
$(this).css('background-color', '#fff');
});
,但没有工作,所以我试图用
$('#AjaxResultTable tr').live('hover', function() {
$(this).css('background-color', '#f5f5f5');
}, function() {
$(this).css('background-color', '#fff');
});
当我将鼠标悬停在一排它改变背景颜色,但它不会更改回当我不是白色的时候变成白色。
有什么建议吗?
在此先感谢。
非常感谢 – Roger 2011-05-31 12:58:37