<! DOCTYPEhtml>
<html>
<head>
    <meta charset="UTF-8">
    <title>CSS implementation: a rectangular content, with shadows, rounded corners, hover state slowly become transparent</title>
    <style>
        body{margin:0;padding:0; }.m-test{width: 200px;height: 100px;border-radius: 10px;box-shadow: 10px 10px 5px # 888888; background-color: green;transition: 0.7 s; }
        .m-test:hover {opacity: 0; }</style>
</head>
<body>
<div class="m-test">
</div>
 
</body>
</html>
Copy the code

\

\

\

Note: Welcome to join the web front-end job hunting qq group: 668352707\