我想在移动设备和Web中同时在“滑动器容器”下面启动。 “刷卡式容器”之间有区别。 我不知道为什么要与众不同。
我应该同时使用哪个命令启动?
<div class="swiper-container">
<ul class="swiper-wrapper">
<li class="swiper-slide"> <-- this elements * 5
<ul>
<li> <-- this elements * 5
<img src="">
<div><p></p></div>
</li>
</ul>
</li>
</ul>
</div>
<div class="swiper-container">
<ul class="swiper-wrapper">
<li class="swiper-slide"> <-- this elements * 5
<ul>
<li> <-- this elements * 5
<img src="">
<div><p></p></div>
</li>
</ul>
</li>
</ul>
</div>
var swiper = new Swiper('.swiper-container', {
observer: true,
observeParents: true,
loop: true,
speed: 1000,
autoplay: {
delay: 5000,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});