2015-03-31 63 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