2015-03-31 55 views

回答

0

默认情况下,一个幻灯片将填补幻灯片容器。

但是,如果您将$ SlideWidth设置为小于“幻灯片”容器宽度,则有机会在幻灯片容器中显示更多幻灯片。

参见下面的示例,

<script> 
    jQuery(document).ready(function ($) { 
     var options = { 
      ... 
      $SlideWidth: 600,         //[Optional] Width of every slide in pixels, the default is width of 'slides' container 
      $Cols: 2,         //Number of pieces to display (the slideshow would be disabled if the value is set to greater than 1), the default value is 1 
      $Align: 100,        //The offset position to park slide (this options applys only when slideshow disabled). 
      ... 
     }; 

     var jssor_slider1 = new $JssorSlider$("slider1_container", options); 
    }); 
</script> 

<div id="slider1_container" style="... width: 800px; ..."> 
    <div u="slides" style="... width: 800px; ..."> 
     ... 
    </div> 
</div> 

参考:http://www.jssor.com/demos-jquery/nearby-image-partial-visible-slider.source.html