正在深入挖掘並盡我所能理解,我應用了在發現類似問題時發現的解決方案,但忽略懸停。我錯過了什麼?風格適用於表格但忽略td:懸停忽略
<style type="text/css">
.testTable td {
color: white;
width: 200px;
background-color: #44749D;
padding: 4px;
text-align: center;
}
.testTable td:hover {
color: 44749D !important;
background-color: C6D4E1 !important;
}
</style>
<head>
<title>Table Test</title>
</head>
<body>
<table class="testTable">
<tr>
<td>Row 1</td>
</tr>
<tr>
<td>Row 2</td>
</tr>
<tr>
<td>Row 3</td>
</tr>
</table>
</body>
</html>
嘗試過有和沒有「!important」,有和沒有使用過類名。 IE,td {...}和.testTable td {...}
謝謝!我現在會回到我的角落。 。 。 – user2972124
歡迎您:)如果它解決了您的問題,請將其標記爲答案 – mohamedrias