0
我使用附近的滑块,我想知道如何去调暗附近显示的其他2张幻灯片。Jssor Cant dim附近的幻灯片
我使用附近的滑块,我想知道如何去调暗附近显示的其他2张幻灯片。Jssor Cant dim附近的幻灯片
默认情况下,一个幻灯片将填补幻灯片容器。
但是,如果您将$ 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