📜  css 将图像裁剪为圆形 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:50.757000             🧑  作者: Mango

代码示例2
.image-cropper {
  width: 100px;
  height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

img {
  display: inline;
  margin: 0 auto;
  height: 100%;
  width: auto;
}