Today when using swiper, the element is the default when no display problems, but a state is hidden by default, and then display the time when the slide width calculating found error, as shown below:
The right is shown below:
Hidden element is displayed again as follows:
Width calculation error
solution:
myApp.swiper mySwiper = var ( 'Guest-warpper.', {
freeMode: to true,
slidesPerView: 'Auto',
Observer: to true, // Review Swiper or their sub-elements during automatic initialization Swiper
observeParents: to true // Review of Swiper when the parent element, the automatic initialization Swiper
});
Just add two lines to the rear.
Tell me what network parameters specific meaning can be explained: http://www.swiper.com.cn/api/Observer/2015/0308/218.html
Reprinted from: https://www.cnblogs.com/sese/p/6699617.html