То, что я пытался и не смог сделать, это настраивать высоту изображения на основе ширины контейнера IFS, поэтому он сохраняет одно и то же соотношение. < /p>
Код: Выделить всё
.card-img-top {
height: 12rem;
object-fit: cover;
}< /code>
[img]https://place-hold.it/300x500/966[/img]
Line 1
Line 2
[img]https://place-hold.it/300x500/966[/img]
Line 1
Line 2
Line 3
[img]https://place-hold.it/300x500/966[/img]
Line 1
Line 2
Line 3
Line 4
[img]https://place-hold.it/300x500/966[/img]
Line 1
[img]https://place-hold.it/300x500/966[/img]
Line 1
Line 2
[img]https://place-hold.it/300x500/966[/img]
Line 1
Line 2
Line 3
[img]https://place-hold.it/300x500/966[/img]
Line 1
Line 2
Line 3
Line 4
[img]https://place-hold.it/300x500/966[/img]
Line 1
Подробнее здесь: https://stackoverflow.com/questions/760 ... ght-bootst