的背面色彩

问题描述 投票:0回答:1
和其他孩子(其他div))

然后我使用了以下方式:

backgounrd-color
但它不会改变div的背景

<tr>

我怎么能实现
    
仅使用CSS。
基本上,您将使用想要的
<div>
在CSS中设置
<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');
        });

<tr>

jquery css dynamic hover children
1个回答
2
投票

tr:hover *
    

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.