【发布时间】:2019-02-06 16:46:03
【问题描述】:
我正在使用这个类来改变背景和文本颜色,效果很好。
#cellType1 {
width: 10%;
height: 83px;
vertical-align: middle;
background-image: url("Index.html")
}
#cellType1:hover {
color: white;
background-color: #6EBA37;
transition:0.6s;
}
...
<td id="cellType1" class="auto-style21" style="width: 10%">
<a class="auto-style24" href="ContactUs.html">
<span class="auto-style37">Contact Us </span></a></td>
auto-style21 工作正常,但是当我将文本更改为超链接时,我无法让文本更改颜色。
我知道这与样式有关,但我无法弄清楚当单元格悬停时如何控制超链接的文本。甚至可以在将鼠标悬停在文本上时更改文本的颜色。
我更希望在鼠标进入单元格时更改文本。
【问题讨论】:
标签: html colors hyperlink hover mouse