超链接伪类

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>超链接伪类</title>
    <style>
        /* 
            :link 用来表示没有访问过的链接(正常的链接)
            :visited 用来表示访问过的链接
                - 由于隐私的原因,所有vistied这个伪类只能修改链接的颜色
            :hover 用来表示鼠标移入的状态
            :active 用来表示鼠标点击
         */
        a:link{
            color: red;
        }
        a:visited{
            font-size: 50px;
            color: orange;
        }
        a:hover{
            font-size: 40px;
            color: skyblue;
        }
        a:active{
            color: yellow;
        }
    </style>
</head>
<body>
    <!-- 
        1.没有访问过的链接
        2.访问过的链接
     -->
    <a href="baidu.com">访问过的链接</a>
    <br><br>
    <a href="baidu123.com">没有访问的链接</a>
</body>
</html>
posted @ 2021-03-03 16:08  博客帅帅  阅读(91)  评论(0)    收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css