嗨,我感谢任何帮助,
基本上我有一个带有 25 个幻灯片的滑块,但我不希望显示所有 25 个缩略图,一次只显示 5 个 这是我尝试过的一些设置。我尝试了很多与 max-min 幻灯片的组合,但 displaySlideQty 没有发生相同的情况,
<script type="text/javascript">
$(document).ready(function(){
$('#slider2').bxSlider({
auto: true,
autoControls: true,
pause: 3000,
minSlides: 1,
maxSlides: 5,
displaySlideQty : 5,
slideMargin: 20,
infiniteLoop: false,
});
<div class="slider">
<h3>Slideshow 2</h3>
<ul id="slider2">
<li><img src="images/4.jpg" /></li>
<li><img src="images/5.jpg" /></li>
<li><img src="images/6.jpg" /></li>
<li><img src="images/4.jpg" /></li>
<li><img src="images/5.jpg" /></li>
<li><img src="images/6.jpg" /></li>
<li><img src="images/4.jpg" /></li>
<li><img src="images/5.jpg" /></li>
<li><img src="images/6.jpg" /></li>
<li><img src="images/4.jpg" /></li>
<li><img src="images/5.jpg" /></li>
<li><img src="images/6.jpg" /></li>
</ul></div>
<div id="bx-pager">
<a data-slide-index="0" href=""><img src="images/thumbs/1.jpg" /></a>
<a data-slide-index="1" href=""><img src="images/thumbs/2.jpg" /></a>
<a data-slide-index="2" href=""><img src="images/thumbs/3.jpg" /></a>
<a data-slide-index="4" href=""><img src="images/thumbs/1.jpg" /></a>
<a data-slide-index="5" href=""><img src="images/thumbs/2.jpg" /></a>
<a data-slide-index="6" href=""><img src="images/thumbs/3.jpg" /></a>
<a data-slide-index="7" href=""><img src="images/thumbs/1.jpg" /></a>
<a data-slide-index="8" href=""><img src="images/thumbs/2.jpg" /></a>
<a data-slide-index="9" href=""><img src="images/thumbs/3.jpg" /></a>
<a data-slide-index="10" href=""><img src="images/thumbs/1.jpg" /></a>
<a data-slide-index="11" href=""><img src="images/thumbs/2.jpg" /></a>
<a data-slide-index="12" href=""><img src="images/thumbs/3.jpg" /></a>
</div>