Twitter Bootstrap carousel different height images cause bouncing arrows

后端 未结 14 1000
刺人心
刺人心 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:53

    You can use this lines in the css file:

    ul[rn-carousel] {
     > li {
     position: relative;
     margin-left: -100%;
    
     &:first-child {
       margin-left: 0;
       }
      }
    }
    

提交回复
热议问题