📜  使用 css 1:1 裁剪图像 - CSS 代码示例

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

代码示例1
.img {
    object-fit: cover;         
      object-position: 100% 0;  //move image position in x direction. 
      object-position: 0 100%; //move image position in y direction.
}