如果封闭的 DIV 属性发生变化,Firefox 将重新启动 Flash 电影 [英] Firefox restarts Flash movie if enclosing DIV properties change

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

问题描述

我在某个 DIV 中嵌入了一个 Flash 电影.问题在于,当我动态更改封闭 DIV 的任何属性时,Firefox(而不是其他浏览器)会重新启动/重新初始化 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.).

是否有某种解决方法?

推荐答案

尝试用 visibility:hidden 隐藏它,否则如果一切都失败了,position:absolute;left:-9999px.

Try hiding it with visibility:hidden or if all else fails, position:absolute;left:-9999px.

我认为 Firefox 不想在不可见的 Flash 动画上浪费内存和 CPU,所以它会杀死它.

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天全站免登陆