问题
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