Twitter Bootstrap carousel different height images cause bouncing arrows

后端 未结 14 1006
刺人心
刺人心 2020-12-07 16:11

I\'ve been using Bootstrap\'s carousel class and it has been straightforward so far, however one problem I\'ve had is that images of different heights cause the arrows to bo

14条回答
  •  悲哀的现实
    2020-12-07 16:59

    In case someone is feverishly googling to solve the bouncing images carousel thing, this helped me:

    .fusion-carousel .fusion-carousel-item img {
        width: auto;
        height: 146px;
        max-height: 146px;
        object-fit: contain;
    }
    

提交回复
热议问题