使用CSS新特性aspect-ratio保持图片宽高比1:1 aspect ratio = 11 = 1 = padding-top: 100% 4:3 aspect ratio = 34 = 0.75 = padding-top: 75% 3:2 aspect ratio2023-02-21html-css140