GIF动画缓存后,在Firefox中不工作 [英] Animated GIF Not Working in FireFox after cache
本文介绍了GIF动画缓存后,在Firefox中不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个GIF动画,循环三次。我在Firefox和Chrome(还没有签其他人),我可以一次,然后查看GIF,如果我重新加载页面,缓存GIF不是动画的。注意到
I have an animated GIF that loops three times. I have noticed in Firefox and Chrome (haven't checked others) that I can view the GIF once and then if I reload the page, the cached GIF is not animated at all.
有没有解决办法?是否有一些关于动画GIF,我可以以prevent这种情况发生?
Is there a solution to this? Is there something about the animated GIF that I could change to prevent this from occurring?
推荐答案
它的超级丑陋的解决方案,但你可以使用这个,如果你调用图像内联,而不是pretty但它的作品!
Its a super ugly solution but you could use this if your calling the image inline, not pretty but it works!
<img src="filename.gif?rand=<?=rand(1,1000);?>" alt="" />
希望帮助
这篇关于GIF动画缓存后,在Firefox中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文