CSS :link 选择器作用
使用 CSS :link 选择器可以设置所有未访问过的链接的样式。你可以运行以下代码来实现 :link 选择器 −
示例
<!DOCTYPE html>
<html>
<head>
<style>
a:link {
background-color: orange;
}
</style>
</head>
<body>
<a href="https://www.example.com">Demo Website</a>https://www.example.com/
</body>
</html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
JavaScript
PHP