如题所示
相关源码:
object-fit: cover;
图片变形处理,设置属性object-fit: cover完美解决!
[css3 object-fit: cover解决图片变形问题](https://blog.csdn.net/badgirl_hong/article/details/53607740?spm=1001.2101.3001.6650.18&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-18-53607740-blog-96573688.pc_relevant_multi_platform_whitelistv2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~default-18-53607740-blog-96573688.pc_relevant_multi_platform_whitelistv2
这个样式常用于图片变形处理。