Using bxslider, is there some way to remove or hide the bullets at the bottom of the slide?

ⅰ亾dé卋堺 提交于 2019-12-22 01:33:43

问题


I am using bxslider to make a simple carousel, one jpg per slide. Because I have 8 jpg's, there are 8 bullets that are displayed at the bottom of each slide. Is there some way for me to remove or hide them.


回答1:


There is an option of bxslider called "pager" that can take boolean true / false. Use the code below:

$(document).ready(function(){
    $('.bxslider').bxSlider({
        pager: false
    });
});



回答2:


first load the bxSlider as usual,

$(document).ready(function(){
    $('.bxslider').bxSlider();
});

then only use the code below, otherwise the jquery will try to call perform the task without even implementing the slider.

$(document).ready(function(){
    $('.bxslider').bxSlider({
        pager: false
    });
});


来源:https://stackoverflow.com/questions/15255672/using-bxslider-is-there-some-way-to-remove-or-hide-the-bullets-at-the-bottom-of

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!