html - CSS use not for TH hover in table TR -
in table i'm using below css highlight trs , want use :not th
html:
<table> <thead> <th></th> <th></th> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table> css:
table tr:hover { background-color:#fff; } table th:hover { background-color:none !important; }
scope selector tbody, not thead.
tbody tr:hover { background-color:#fff; } tbody th:hover { background-color:none !important; } html:
<table> <thead> <tr> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table>
Comments
Post a Comment