2011-10-30 201 views
0

我有一些div的,在他們的圖像和文字在頁面上,都具有相同的內容:DIV透明度不改變

<div class="indexThumb"> 
    <img src="img.jpg" /> 
    <div class="picWrapper"> 
    <p>some text</p> 
    </div> 
</div> 

,我試圖動畫通過jQuery的動畫不透明度()函數頁面加載但它不工作。下面是我的javascript(我已經包括了最新的jQuery庫):

$(function(){ 
    $('.indexThumb').animate({opacity:0.3}, 1000); 
}); 
+0

您嘗試過哪種瀏覽器? –

+0

你在IE中測試它嗎?它在這裏工作http://jsfiddle.net/yVNQx/ – Rafay

+0

我使用的是火狐 – fridgerator

回答

1

似乎是working

+0

firefox 7.0.1不會爲我工作,但查看鉻工程完全相同的頁面 – fridgerator

+0

@fridgerator我也使用7.0.1,並且它工作正常。 –

+0

好吧...多數民衆贊成在奇怪的 – fridgerator