2013-05-17 86 views
1

工作我的HTML:的jQuery的.css({ ' - MOZ動畫延時': '300毫秒'})未在Firefox

<div class="effect-wrapper"> 
    <div class="effect-content"></div> 
    <div class="effect-content"></div> 
    <div class="effect-content"></div> 
    <div class="effect-content"></div> 
</div> 

我的jQuery:

$(".effect-wrapper .effect-content").each(function (j) { 
    $(this).css({'-webkit-animation-delay':(j * 300) + 'ms' 
    ,'-moz-animation-delay':(j * 300) + 'ms' 
    , '-o-animation-delay':(j * 300) + 'ms' 
    , 'animation-delay':(j * 300) + 'ms'}); 
});` 

http://jsfiddle.net/F5wzr/1/

但是當我使用Firebug在Firefox上看到時,class .effect-content只包含style'animation-delay',而不是'-moz-animation-delay'。 任何人都可以幫助我嗎?非常感謝您的幫助。

回答