我正在使用jQuery循环插件, 由于某种原因,我无法理解,它创建了4个寻呼机,尽管我只有2张图片...
代码:
<div class="cycle-slideshow" data-cycle-slides="> img.bg" data-cycle-pager="#edible_slider_pagers" data-cycle-pager-template='<i class="fa fa-birthday-cake"></i>' data-cycle-prev="#edible_slider_prev" data-cycle-next="#edible_slider_next">
<img src="<?php echo base_url('images/works/edible1.jpg')?>" alt="" class="bg" />
<img src="<?php echo base_url('images/works/edible2.jpg')?>" alt="" class="bg" />
</div>
<img src="<?php echo base_url('images/arrowright.png')?>" id="edible_slider_prev" class="arrow-right" alt="" />
<img src="<?php echo base_url('images/arrowleft.png')?>" id="edible_slider_next" class="arrow-left" alt="" />
<div class="pagers" id="edible_slider_pagers"></div>