OwlCarousel2-支持触摸屏的响应式jQuery旋转木马插件 Touch enabled jQuery plugin that lets you create a beautiful responsive carousel slider.

Basic Responsive Center Merge Auto Width Url Hash Nav Events Stage Padding rtl Lazyload Video Animate Autoplay Auto Height Mousewheel

Auto Height

Overview

要使用该属性设置autoHeight: true。在同一时间里只有一个项会显示在屏幕上。该属性会计算所有的可见项,并改变它的高度为最高项的高度。

//default settings:
AutoHeight.Defaults = {
    autoHeight: false,
    autoHeightClass: 'owl-height'
};

Setup

$('.owl-carousel').owlCarousel({
    items:1,
    margin:10,
    autoHeight:true
});