在bxslider中,我希望在点击某个标签时一次移动一张幻灯片,但一次不会移动一张幻灯片。如果有人可以帮帮我吗?
<p><span id="slider-prev"></span> | <span id="slider-next"></span></p>
<ul class="trend-products">
<li><img src="../images/postad.jpg" /></li>
<li><img src="../images/postad.jpg" /></li>
<li><img src="../images/postad.jpg" /></li>
<li><img src="../images/postad.jpg" /></li>
<li><img src="../images/postad.jpg" /></li>
<li><img src="../images/postad.jpg" /></li>
</ul>
$('.trend-products').bxSlider({
auto:false,
minSlides: 1,
maxSlides: 20,
slideWidth: 170,
slideMargin: 10,
controls: true,
moveSlides: 1,
pager: false,
nextSelector: '#slider-next',
prevSelector: '#slider-prev',
nextText: 'Onward →',
prevText: '← Go back'
});