Image disappears in carousel mode (jQuery Swiper plugin)

与世无争的帅哥 提交于 2019-12-11 23:24:46

问题


I am using iDangero.us Swiper plugin for homepage slider, and I encountered a peculiar problem in all browsers. I have 4 slides (each is a div with a background image and some text and images inside), and all looks fine until I swipe (or click the Next button) to go from the last slide to come to the first one. The new slide appears totally white, and it only takes a slight dragging to make it appear properly.

Interestingly, this does not happen if I scroll backwards (drag the slider to the left or click the Back button).

The demo is here: https://dl.dropboxusercontent.com/u/13308449/design-boost/index.html

What might cause this behaviour and how can I fix it?


回答1:


The problem was with the margin-right: 10px being applied to visible slides, so the problem was not in the plugin, but my CSS. Apologies.



来源:https://stackoverflow.com/questions/20355823/image-disappears-in-carousel-mode-jquery-swiper-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!