如果封闭DIV属性更改,Firefox将重新启动Flash影片 [英] Firefox restarts Flash movie if enclosing DIV properties change
本文介绍了如果封闭DIV属性更改,Firefox将重新启动Flash影片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有解决这个问题的方法?
解决方案
试着用 visibility:hidden
或者其他所有失败, position:absolute; left:-9999px
。
我认为Firefox不想浪费内存和CPU上的Flash动画,因此它杀死了它。
I have a Flash movie embedded in some DIV. The trouble is that when I change any property of the enclosing DIV dynamically, Firefox (not other browsers) restarts/reinitializes Flash movie effectively resetting the whole progress (eg: file selection for upload, etc.).
Is there some sort of a workaround for this?
解决方案
Try hiding it with visibility:hidden
or if all else fails, position:absolute;left:-9999px
.
I presume Firefox doesn't want to waste memory and CPU on Flash animation that's invisible, so it kills it.
这篇关于如果封闭DIV属性更改,Firefox将重新启动Flash影片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文