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