使用CSS按比例调整图像大小? [重复] - Resize image proportionally with CSS? [duplicate]

问题:

This question already has an answer here: 这个问题在这里已有答案: this

Is there a way to resize (scale down) images proportionally using ONLY CSS? 有没有办法使用ONLY CSS按比例调整大小(缩小)图像? spa

I'm doing the JavaScript way, but just trying to see if this is possible with CSS. 我正在作JavaScript方式,但只是想看看CSS是否可行。 .net


解决方案:

参考一: https://stackoom.com/question/3Ix5/使用CSS按比例调整图像大小-重复
参考二: https://oldbug.net/q/3Ix5/Resize-image-proportionally-with-CSS-duplicate
相关文章
相关标签/搜索