swiper 不同屏幕显示不同方式
breakpoints:{ 320:{ //当屏幕...
breakpoints: {
320: { //当屏幕宽度大于等于320
slidesPerView: 2,
slidesPerGroup: 2,
spaceBetween: 50
},
1000: { //当屏幕宽度大于等于768
slidesPerView: 3,
slidesPerGroup: 3,
spaceBetween: 60
},
1280: { //当屏幕宽度大于等于1280
slidesPerView: 4,
slidesPerGroup: 4,
spaceBetween: 45
}
},
320: { //当屏幕宽度大于等于320
slidesPerView: 2,
slidesPerGroup: 2,
spaceBetween: 50
},
1000: { //当屏幕宽度大于等于768
slidesPerView: 3,
slidesPerGroup: 3,
spaceBetween: 60
},
1280: { //当屏幕宽度大于等于1280
slidesPerView: 4,
slidesPerGroup: 4,
spaceBetween: 45
}
},
-
上一篇
jquery 屏幕大小判断 -
下一篇
js 鼠标移上去修改style属性