4css

链接伪类
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        a:link {
            color:#333;
            text-decoration:none
        }
        a:visited {
            color:orange
        }
        a:hover {
            color:red
        }
        a:active {
            color:green
        }
    </style>
</head>
<body>
    <a href="http://www.baidu.com">小米手机</a>
</body>
</html>
原文地址:https://www.cnblogs.com/gao-chao/p/13382991.html