2012-05-01 27 views
0

林...jQuery的循環使用jQuery週期上有褪色幻燈片像這樣的插件containerResize選項

$('.pics').cycle({ 
    fx: 'fade', 
    timeout:5000, 
    random: 1, 
    containerResize: false 
}); 

這是以前工作正常,但自從我加入containerResize: false我的圖片不會顯示出來了......沒有任何人知道它這樣做呢?......在例如http://willruppelglass.com/index.php

這裏是一些其他的代碼,可能有幫助,永遠不知道....

.pics { 

    padding: 0; 
    margin: 0; 
} 

.pics img {  
    background-color: #eee; 
    height: 200px; 
    text-align:center; 
    top: 0; 
    left: 0; 
} 

.contentImages{ 
    border:1px solid #CCC; 
    padding:10px; 
    margin:20px auto 0; 
    position:relative; 
    width: 600px; 
    overflow:hidden; 
} 

<div class="contentImages"> 

<div class="pics"> 

<img src="upload/<?php echo $array['image'] ?>" height="200" /> 

<img src="upload/<?php echo $array['image2'] ?>" height="200" /> 

<img src="upload/<?php echo $array['image3'] ?>" height="200" /> 

</div> 

</div> 

回答

1

你要麼需要保持containerResize: true或在.contentImages上設置heightmin-height。你隱藏了一個0高度的元素的所有溢出,它的孩子將永遠不會顯示。檢查你的DOM會告訴你。