CSS 中 :hover 伪类的用法
cssweb developmentfront end technology更新于 2025/8/23 22:04:17
:hover 伪类用于在鼠标悬停在元素上时为其添加特殊样式。可能的值可以是任何有效格式的任意颜色名称。
示例
<html>
<head>
<style>
a:hover {
color: #FFCC00
}
</style>
</head>
<body>
<a href = "">Bring Mouse Here</a>
</body>
</html>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

