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> 

http://jsfiddle.net/3bpzx/1/


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -