2017-05-24 8 views

答えて

0

私はこれがあなたの後であると思います。

td:hover:nth-child(1) {background-color: #f5f5f5;} 
 
td:hover:nth-child(2) {background-color: #ff0000;} 
 
td:hover:nth-child(3) {background-color: #ddd;}
<table width="100%" border="0" cellspacing="0" cellpadding="0"> 
 
    <tbody> 
 
    <tr> 
 
     <td>&nbsp;</td> 
 
     <td>&nbsp;</td> 
 
     <td>&nbsp;</td> 
 
    </tr> 
 
    </tbody> 
 
</table>

乾杯

0

セルにクラス名またはIDを指定します。

td[id="your id"]{...} 

td[id="your id"]:hover{background-color: #ddd;} 
関連する問題