$(function(){ /*主大图切换*/ $(".mbanner .focus").sudyfocus({ p:2, zWidth:1920, zHeight:540, title:{ isAutoWidth: true, active:true }, text:{ active: false, isAutoHeight: false, href: false }, response: true, speed:700, pagination: false, navigation: true, isNavHover: true, href:true, effect: 'fade' }); //slick左右轮播 $('.post-31 .news_list').slick({ dots: false, //指示点 infinite: true, //循环播放 autoplay: true, //自动播放 autoplaySpeed: 5000, //自动播放间隔 pauseOnHover: false, //鼠标悬停暂停自动播放 swipeToSlide: true, //允许用户直接拖动或滑动到幻灯片上 draggable: true, arrows: false, //左右箭头 useCSS: true, //使用 CSS3 过度 speed: 1000, //滑动时间 vertical: false, //是否开启垂直滑动模式 verticalSwiping: false, //是否开启垂直滑动切换 slidesToShow: 4, //幻灯片每屏显示个数 slidesToScroll: 1, //幻灯片每次滑动个数 rows:1, slidesPerRow:4, touchMove:true,//可否拖动1 swipe:true,//可否拖动2 centerMode: false,//中心模式 variableWidth: false,//可变宽度 adaptiveHeight: true,//适应高度 responsive: [ //断点触发设置 { breakpoint: 1200, //分辨率之下(不包含设置分辨率本身) settings: { //参数设置 slide: 'li', //滑动元素查询 slidesToShow: 3, //幻灯片每屏显示个数 slidesToScroll: 1, //幻灯片每次滑动个数 infinite: true //循环播放 } }, { breakpoint: 960, settings: { slide: 'li', slidesToShow: 2, slidesToScroll: 1, infinite: true } }, { breakpoint: 768, settings: { slide: 'li', slidesToShow: 2, slidesToScroll: 1, infinite: true } }, { breakpoint: 600, settings: { slide: 'li', slidesToShow: 1, slidesToScroll: 1, infinite: true } }, { breakpoint: 320, settings: { slide: 'li', slidesToShow: 1, slidesToScroll: 1, infinite: true } } ] }); });