动画gif在ie7中不起作用 [英] animated gif not working in ie7

查看:123
本文介绍了动画gif在ie7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

动画gif在ie7中不起作用.它可以在其他浏览器中使用,例如firefox,crome.

animated gif not working in ie7.It works in other browser like firefox,crome.

推荐答案

这是一个常见问题(是我应该说的吗?现在都进入IE9!).

这是IE的已知错误(局限性).
解决方法:您可以使用JavaScript来解决-预加载图像,然后通过"onbeforeunload"操作将冻结图像的源(< img src =?">)更改为该预加载图像,或者将图像放入div并进行设置将div显示为隐藏-需要显示gif图像时显示div.

很少讨论的问题:
http://www.norio.be/blog/2008/09/animation-gif-not-working-internet-explorer [ ^ ]
http://stackoverflow.com/questions/1803610/ie7-ie8-and-frozen-动画gifs [ ^ ]
http://stackoverflow.com/questions/780560/animated-gif-in-ie-stopping [^ ]
It''s a common issue (was I should say as we are into IE9 now!).

It''s a known bug (limitation) of IE.
Resolution: You could use JavaScript to solve it - Preload image and change source (<img src="?">) of freezing image to that preloaded image on "onbeforeunload" action OR place the image in a div and set display of div as hidden - show the div when you need to show the gif image.

Few discussed issues:
http://www.norio.be/blog/2008/09/animated-gif-not-working-internet-explorer[^]
http://stackoverflow.com/questions/1803610/ie7-ie8-and-frozen-animated-gifs[^]
http://stackoverflow.com/questions/780560/animated-gif-in-ie-stopping[^]


这篇关于动画gif在ie7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆