CSS中的a:hover是用来定义鼠标移动到链接上时的样式。在这篇文章中,我们将详细探讨a:hover的各种用法。 首先,我们来看下面的示例代码: a:hover { color: red; text...
CSS中的a:hover是用来定义鼠标移动到链接上时的样式。在这篇文章中,我们将详细探讨a:hover的各种用法。
首先,我们来看下面的示例代码:
a:hover {
color: red;
text-decoration: underline;
}
a:hover {
background-color: yellow;
}
a:hover {
font-size: 20px;
}
a:hover img {
transform: rotate(180deg);
}
a {
transition: all 0.5s;
}
a:hover {
color: red;
}