首页 > 代码库 > hover

hover

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .ele{
            background-color: #ded6ee;
        }
        .ele:hover {
            border: 1px solid cornflowerblue;

        }
        .ele:hover .ele-e{
            color: #fff;}
    </style>
</head>
<body>
    <div  class="ele">
        <div class="ele-e">
            123
        </div>
        <div class="el">
            123
        </div>

    </div>
</body>
</html>

 

hover