css img object-fit to preserve aspect ratio

This commit is contained in:
PuzzleMoon 2025-01-24 21:38:22 +08:00 committed by Celogeek
parent aabea6fb12
commit d1a14d3489

View File

@ -15,4 +15,5 @@ img {
margin:0;
padding:0;
z-index:0;
object-fit: contain;
}