Hover effects not working with IE8

后端 未结 3 1470
慢半拍i
慢半拍i 2020-11-28 15:02

I used CSS for a color change on hover for a table

#tabb tbody tr:hover td{
    color:#006;
    background:#d0e4f2;
}

This works fine in Ch

3条回答
  •  爱一瞬间的悲伤
    2020-11-28 15:37

    IE8 is not the usual culprit for :hover problems. If you can't get it to work, there's always jQuery!

    $("#tabb tbody tr").hover(
        function() {
            $("this").children("td").css( { 'background-color': '#d0e4f2', 'color': '#006' } );
        },
        function() {
            $("this").children("td").css( { ... } );
        }
    );
    

提交回复
热议问题