2023-05-07 00:49:04kentvd4
BootStrap img-responsive 縮小圖片變
網站架設
本文出自:
很多人用BootStrap 圖片因寬度縮小視起來很歡快
但是縮得太小的時刻,高度會到達最小高度是以沒法往下縮
會造成圖片變形,如圖
於是翻了一下bootstrap.css
找到 .img-responsive 這個class
裡面加入
如許就可以了
成功以下圖
本文出自: