CSS 中 :active 伪类的用法
cssweb developmentfront end technology更新于 2025/8/23 22:36:17
:active 伪类用于为活动元素添加特殊样式。其值可以是任何有效格式的任意颜色名称。
示例
<html>
<head>
<style>
a:active {
color: #FF00CC;
}
</style>
</head>
<body>
<a href = "">Click This Link</a>
</body>
</html>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

