2014-01-22 23 views

回答

3

使用此設置爲紅色懸停行的最後一個單元格的背景色:

tr:hover td:last-child { 
    background-color: #f00; 
} 

Demonstration

+0

由於其工作... – thecodejack

0

試試這個

tr:hover td:last-child { 
    background-color: #f00; 
} 
0

你有很多不錯的選擇

tr:hover td:last-child { 
    background-color: red; 
} 

tr:hover td:last-of-type { 
    background-color: red; 
} 

tr:hover td:nth-last-child(1){ 
    background:red; 
} 
相關問題