嗨,我正在做bootstrap carousal。我试着在箭头点击上一个接一个地显示多张幻灯片。我使用了一些代码,它在某种程度上是有效的,但不是预期的。我只想在点击时移动一张图片。但是,在这里,整个图像幻灯片是移动的。请帮助我在点击时只移动一张图片。提前谢谢。
$('#Carousel').carousel({
interval: 4000
})
$('#Carousel .item').each(function() {
var next = $(this).next();
if (!next.length) {
next = $(th
因此,我一直在尝试找出同时使用这两个库的最佳方式,但我一直在苦苦挣扎。 我找到的最好的东西是这个CodePen (https://codepen.io/ezra_siton/pen/XNpJaX),但是它看起来非常复杂,而且我个人还没能让它在我自己的项目中工作。尤其是函数; var initPhotoSwipeFromDOM = function(gallerySelector) {
... omitted this because the function is huge. This is here because
SO doesn't allow codepen lin