0
我想在riotjs應用程序上實現flexslider。滑塊工作正常,但是當我爲滑塊設置自定義項目寬度時,它不會。據文件,它應該工作。flexslider項目寬度不能與riotjs
self.on('updated', function(){
$('.flexslider').flexslider({
animation: "slide",
// itemWidth: 210,
// itemMargin: 5,
controlsContainer: ".flex-container",
start: function (slider) {
$('.total-slides').text(slider.count);
},
after: function (slider) {
$('.current-slide').text(slider.currentSlide);
}
});
});
防暴組件:
<rsc-component id="dropBox" class="mybox col-lg-12">
<div class="flexslider">
<ul class="slides">
<li>
<img src="../images/slide1.jpg" alt=""/>
</li>
<li>
<img src="../images/slide2.png" alt=""/>
</li>
</ul>
</div>
</rsc-component>
如果您從暴亂組件中刪除col-lg-12類,它會起作用嗎? – attomos
@attomos不,它不 – Satyadev