我的应用程序中有一个简单的动画引导程序进度条,它在Firefox中的表现很奇怪。Firefox中奇怪的引导程序进度栏行为
HTML:
<div id="render-progress" class="progress progress-striped active" >
<div class="bar" style="width: 25%; height:100%;background-color: #CCCCCC;"></div>
</div>
JS:
$('#render-progress .bar').animate({width:'50%'}, 2000);
在Chrome中它会从25%至50%,像它应该,但在Firefox它从25%去75%至50%。
这使我疯狂,我不明白为什么它的行为是这样的。
SEE FIDDLE:http://jsfiddle.net/dv4Hd/12/
@MageshKumaar小于什么? – Yarin
设置进度条的宽度,而不是像素 –
看来,10%的作品。奇怪的。 –