πŸ’»Coding/πŸ“’ CSS

CSS _hover

μŒμ€μ‘ 2021. 10. 26. 08:25
728x90
λ°˜μ‘ν˜•

CSS : hover

CSS - μ„ νƒμž

hoverλŠ” μ‚¬μš©μžμ˜ 마우슀 μ»€μ„œκ°€ λ§ν¬λ‚˜, κΈ€μž λ“±
μœ„μ— μ˜¬λΌκ°€ μžˆλŠ” μƒνƒœλ‘œ
마우슀 μ»€μ„œ 이동에 따라 μŠ€νƒ€μΌ λ³€ν™”λ₯Ό 쀄 λ•Œ μ‚¬μš©ν•©λ‹ˆλ‹€!

[μ‹€μ œ μ˜ˆμ‹œ 사진]

마우슀 μ»€μ„œκ°€ μ˜¬λΌκ°€ μžˆμ„ λ•Œμ˜ λ³€ν™”
" ν™ˆνŽ˜μ΄μ§€μ—μ„œ λ©”λ‰΄λ°”λ‚˜ λ§ˆμš°μŠ€κ°€ μ˜¬λΌκ°”μ„ λ•Œ λ³€ν™”ν•˜λŠ” λͺ¨μŠ΅ 많이 보셨죠? "

 

 

[ html - css μ½”λ“œ ]

<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hover</title>
    <style>
        ul {
            list-style: none;
        }
        li:hover {
            color: lightcoral;
            cursor: pointer;
        }
        .point:hover {
            color: lightgreen;
        }
    </style>
</head>
<body>
    <ul>
        <li>HOME</li>
        <li class="point">PRODUCT</li>
        <li>SHOP</li>
        <li>EVENT</li>
    </ul>
</body>
</html>

 

[μ‹€ν–‰ν™”λ©΄]

hover μ „μ˜ ν™”λ©΄
hover μƒνƒœμ˜ ν™”λ©΄

728x90
λ°˜μ‘ν˜•