截图的一种思路

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<!DOCTYPE html>
<html>

<head>
    <style>
        .container {
            position: absolute;
            background-color: #dddddd;
            width: 600px;
            height: 200px;
            overflow: hidden;
        }

        .shadow {
            position: absolute;
            left: 50px;
            top: 50px;
            width: 300px;
            height: 100px;
            background-color: yellow;
            box-shadow: 0 0 0 500px rgba(0, 0, 0, 0.2);
            ;
        }
    </style>
</head>

<body>

    <div class="container">
        asdfasdfasdfasf
        <div class="shadow"></div>
    </div>

</body>

</html>