2014-06-24 22 views
1
<script>  
$(function(){ 
    var slider = new BeaverSlider({ 
    structure: { 
     container: { 
     id: "my-slider", 
     width: '1024', 
     height: 520, 

     } 
    }, 
    content: { 
     images: [ 
     "images/slider/1.jpg", 
     "images/slider/2.jpg", 
     "images/slider/3.jpg", 
     "images/slider/4.jpg", 
     "images/slider/5.jpg", 

     "images/slider/7.jpg", 
     "images/slider/8.jpg", 
     ] 
    }, 
    animation: { 
     effects: effectSets["slider: big set 2"], 
     interval: 1000 
    } 
    }); 
}); 
</script> 
+0

我认为这个插件的宽度参数需要一个整数? – lindsay

回答

1

您可以使用screen.width而不是您询问的100%来尝试。

... 
    width: screen.width, 
... 
0

只要改变:

id: "my-slider", width: '1024' 

到:

id: "my-slider", width: '100%' 

???

+0

这不起作用 – anand

相关问题