0
点赞
收藏
分享

微信扫一扫

图像裁剪效果

小猪肥 2024-10-11 阅读 30

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image Crop Effect</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            background-color: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .crop-container {
            width: 200px;
            height: 200px;
            overflow: hidden;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .crop-container img {
            width: 100%;
            height: auto;
        }
    </style>
</head>
<body>
    <div class="crop-container">
        <img src="https://via.placeholder.com/300" alt="Cropping Example">
    </div>
</body>
</html>  }
    </style>
</head>
<body>
    <div class="crop-container">
        <img src="https://via.placeholder.com/300" alt="Cropping Example">
    </div>
</body>
</html>  }
    </style>
</head>
<body>
    <div class="crop-container">
        <img src="https://via.placeholder.com/300" alt="Cropping Example">
    </div>
</body>
</html>  }
    </style>
</head>
<body>
    <div class="crop-container">
        <img src="https://via.placeholder.com/300" alt="Cropping Example">
    </div>
</body>
</html>

举报

相关推荐

0 条评论