其他分享
首页 > 其他分享> > B站coderwhy 元素的阴影练习

B站coderwhy 元素的阴影练习

作者:互联网

<!DOCTYPE html>
<html lang="en">
<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>66's</title>
    <style>
        body{
            background-color: #f1f1f1;
        }

        .box{
             margin: 8px auto;
             width:200px;
             height:250px;
             background-color: #fff;
        }
        
        .title{
            background-color: #e1e2e3;
            width:200px;
            height:50px;
            text-align:center;
            line-height: 50px;
            color:#000;
        }

       .box:hover{
             border:1px solid #0b96d6;
             box-shadow:0 5px 10px  5px rgba(46, 170, 252, 0.2);
        }


        .title:hover{
            background-color: #0b96d6;
            color:#fff;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="title">更多配置</div>
    </div>
</body>
</html>

效果如下:(当鼠标没放在上面时)
当鼠标没放在上面时
当鼠标放在上面后:
在这里插入图片描述

标签:box,当鼠标,color,练习,height,background,fff,coderwhy,阴影
来源: https://blog.csdn.net/coder_66l/article/details/121746947