我使用tihs作为滑块如何为滑块添加单选按钮
$(document).ready(function () {
$('#owl-example').sliderPro({
width: '100%',
buttons: false,
slideDistance: 0,
touchSwipe: false,
autoplay: false,
keyboard: false,
breakpoints: {
1920: {
height: '800px',
},
1600: {
height: '650px',
},
1024: {
height: '590px',
},
720: {
height: '360px',
},
525: {
height: '285px',
},
400: {
height: '220px',
},
320: {
height: '180px',
}
}
});
我试图添加点:true,但它不起作用。我可以添加任何其他方式以便按钮显示吗?
答案 0 :(得分:0)
将buttons: false
更改为buttons: true
,或将其删除。
https://github.com/bqworks/slider-pro/blob/master/docs/api.md#buttons
buttons
Indicates whether the buttons will be created.
Default value: true