我想使用我自己的前一个和下一个按钮,它也超出了滑块div.我正在使用BxSlider.
我会稍微分享一下我的代码.
如果你能帮助我,我会很高兴的.
我会稍微分享一下我的代码.
如果你能帮助我,我会很高兴的.
这是按钮和幻灯片.
<div class= "productsbuttons"><img id ="proprev" src="images/productleftarrow.png" /><img style="margin-left:10px;" id="pronext" src="images/productrightarrow.png" /> </div> </div> <div class = "products"> <ul class = "mainslider"> <li><img class = "productslider" src="images/menu-image/img1.png" /> Lores ASda</li> <li><img class = "productslider" src="images/img1.png" /> ASDasdasd</li> <li><img class = "productslider" src="images/menu-image/img1.png" /> ASd</li> <li><img class = "productslider" src="images/img1.png" /> ASas</li> </ul>
这是jquery
$(document).ready(function() { var mySlider = $('.mainslider').bxSlider({ nextSelector: '#pronext',prevSelector: '#proprev',prevText: '',nextText: '',minSlides: 2,maxSlides: 2,slideWidth: 360,slideMargin: 5,pager:false,}); });