2014-03-12 56 views

回答

1

嘗試禁用自適應高度特點:

adaptiveHeight : false 

它看起來像腳本在以下元素上將高度設置爲0:

.active> .bx-wrapper> .bx -portport

我在猜測這與自適應高度特徵有關。


您也可以嘗試使用CSS來防止高度被設置爲0:

.bx-viewport{min-height:125px} 
0

我找到解決方案

<script type="text/javascript"> 
$(document).ready(function() { 

$("#myTab li").click(function() { 
    if (!$(this).hasClass("active")) { 
setTimeout(function() { 
ticaricar.reloadSlider(); 
binekcar.reloadSlider();}, 200);} }); 

var binekcar = $('.binekcar').bxSlider({ 
slideWidth: 150, 
minSlides: 2, 
maxSlides: 6, 
slideMargin: 10, 
pager:false, 
controls:true, 
auto: true, 
speed:2000, 
pause: 10000, 
moveSlides:1, 
nextText: '', 
prevText: '', 
mode:'horizontal', 
adaptiveHeight : 'true' 
}); 


var ticaricar = $('.ticaricar').bxSlider({ 
slideWidth: 150, 
minSlides: 2, 
maxSlides: 6, 
slideMargin: 10, 
pager:false, 
controls:true, 
auto: true, 
speed:2000, 
pause: 10000, 
moveSlides:1, 
nextText: '', 
prevText: '', 
adaptiveHeight : 'true' 
}); }); 

相關問題