我有一个表,其中<tr>包含很多,<div>每个表都可以包含许多其他表(它们是自动生成的)
然后backgounrd-color,当<tr>鼠标移动<div><div><tr>
然后我用这个:
$('.ui-datagrid-column').live('mousemove',function(){
$(this).css('background-color', 'red');
$(this).children().css('background-color', 'red');
//ui-layout-unit-content ui-widget-content
});
//.ui-layout-container
$('.ui-datagrid-column').live('mouseleave',function(){
$(this).css('background-color', 'white');
$(this).children().css('background-color', 'white');
});
但它不会改变 div 内部的背景<tr>
我怎样才能做到这一点