css3:box-shadow property

The box should generally be taken directly from the design draft
insert image description here

<!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>Document</title>
    <style>
        .box {
    
    
            width: 200px;
            height: 200px;
            background-color: pink;

           box-shadow: 10px 9px 10px 0px #999;

            /* 注意: 外阴影, 不能添加outset, 添加了会导致属性报错,
            不要写出来,内阴影是可以写的 */
            /* box-shadow: 5px 10px 20px 10px green outset; */
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>

insert image description here

Guess you like

Origin blog.csdn.net/qq_42931285/article/details/123949563