1. 程式人生 > >Swiper隱藏後在顯示滑動問題

Swiper隱藏後在顯示滑動問題

abs ava tab per parent slide data ren true

	<div class="labs" style=“display:none”>
			<div class="swiper-wrapper">
				{{each $data.result}}
				<div class="swiper-slide">
					<ul class="cf">
						{{each $value x}}
						<li class="fl table">{{x}}</li>
						{{/each}}
					</ul>
				</div>
				{{/each}}
			</div>

		</div>

  

var lables = new Swiper(‘.labs‘, {

observer: true,//修改swiper自己或子元素時,自動初始化swiper
observeParents: true//修改swiper的父元素時,自動初始化swiper
})

Swiper隱藏後在顯示滑動問題