一、圆形图像处理

  
示例:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            border: 1px solid red;
            overflow: hidden;          /*隐藏溢出属性*/
            border-radius: 50%;        /*设置边框属性*/
        }
        img {
            max-width: 100%;           /*将图片的大小设置为父级标签的大小*/
        }
    </style>
</head>
<body>

<div>
    <img src="2.jpg" alt="">
</div>

</body>
</html>
View Code

相关文章:

  • 2022-12-23
  • 2021-07-15
  • 2021-06-11
  • 2021-08-17
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案