SOURCE

console 命令行工具 X clear

                    
>
console
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hover Underline Effect</title>
    <style>
        .underline-effect {
            display: inline-block;
            position: relative;
            font-size: 24px;
            color: #333;
            text-decoration: none;
            padding: 5px 0;
        }
        
        .underline-effect::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            right: 50%;
            height: 2px;
            background-color: #3498db;
            transition: all 0.3s ease-in-out;
        }
        
        .underline-effect:hover::after {
            left: 0;
            right: 0;
        }
    </style>
</head>
<body>
    <a href="#" class="underline-effect">Hover Me</a>
</body>
</html>