如果封闭DIV属性更改,Firefox将重新启动Flash影片 [英] Firefox restarts Flash movie if enclosing DIV properties change

查看:96
本文介绍了如果封闭DIV属性更改,Firefox将重新启动Flash影片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个嵌入在一些DIV的Flash电影。麻烦的是,当我动态地改变封闭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屋!

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