Flash 透明度:它在 IE 以外的其他环境中可靠运行吗? 有解决方法吗?

发布于 2024-07-13 20:55:56 字数 418 浏览 11 评论 0原文

我得到了一个网站布局和一个需要透明度的 Flash 导航。 然而,使用 wmode='transparent' 的结果在使用最新 Flash 10 的浏览器之间高度不一致。

在 IE7 中,示例页面运行得非常好。 在 FireFox3 (Win) 中,Flash 中的颜色不正确。 在 Safari/FF3 (Mac) 中,Flash 根本不透明。

我可以使用 z-index 将其发送到所有内容后面以获得相同的效果,但是顶部的 div 不允许单击菜单。

我制作了一个测试页面来演示:http://quietmind.biofeedback.net/test/so。 html

I've been given a site layout and a flash navigation to incorporate which requires transparency. However, using wmode='transparent' the results are highly inconsistent across browsers using the latest Flash 10.

In IE7 the sample page works perfectly fine.
In FireFox3 (Win) the colors are incorrect in the flash.
In Safari/FF3 (Mac) the Flash is not transparent at all.

I can use z-index to send it behind everything for the same effect, but then the divs on top do not allow the menu to be clicked.

I made a test page to demonstrate: http://quietmind.biofeedback.net/test/so.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦在夏天 2024-07-20 20:55:56

将 wmode 设置为透明可能会导致一些奇怪的问题,但这对我来说是新问题。 我怀疑你对 swf 本身的透明度做了一些奇怪的事情,这导致插件搞乱了计算。 首先调查一下。
然而,如果可能的话,尽量避免 wmode 透明,它充其量只是性能消耗,并且可能导致一大堆奇怪的行为(尽管混乱的颜色可能是可以避免的)

Setting wmode to transparent can cause some strange problems, but this one is new to me. I would suspect that you're doing something a bit odd with the transparency in the swf itself which causes the plugin to mess up the calculations. Start by looking into that.
However, try to avoid wmode transparent if possible, it's a performance hog at best and can cause a whole bunch of strange behaviours (although the messed up colors can likely be avoided)

淡淡の花香 2024-07-20 20:55:56

据我所知,wmode 一直是一个令人痛苦的事情。 尽管我不得不承认我没有在 FP10 中运行测试,但从未在跨浏览器上正常工作。

wmode 透明的已知问题有:

  • 在非英语键盘中输入“@”符号。
  • 选项卡索引的疯狂。
  • 整体性能下降。
  • 打印问题(例如
  • 询问 Google 并帮助您自己。

所以,不,它不可靠。 实际上,对我来说任何需要 wmode 的设计都不是有效的设计。

您可以阅读有关 wmode 内部结构的更多信息 GPU 加速是什么意思是?

祝你好运。

胡安

wmode has been a pain in the ass as far as I can remember. Has never worked correctly crossbrowser although I have to admit I haven't run the test in FP10.

Known issues with wmode transparent have been:

  • Entering "@" sign in non- English keyboards.
  • Tab Index craziness.
  • Overall lost of performance.
  • Printing problems (for example here).
  • Ask Google and help yourself.

So, no, it's not reliable. Actually, for me any design that requires wmode is just not a valid design.

You can read more about wmode internals at What does GPU acceleration mean?.

Good luck.

Juan

吾家有女初长成 2024-07-20 20:55:56

这两个答案都有帮助,但事实证明,原始 SWF 中的其中一张图像为 jpg。 由于某种原因,Flash 的 Windows 实现处理得很好,但 Mac 版本并没有尝试使其透明。

尽管 Windows FF3 仍然存在使用透明设置破坏 Flash 颜色的问题,但这是一个单独的问题。

Both of the answers were helpful, but as it turns out the original SWF had a jpg for one of the images. For some reason the Windows implementation of Flash handled this just fine, but the Mac version didn't attempt to make it transparent.

There's still the issue of Windows FF3 mangling the colors on Flash with transparent set though, but that's a separate issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文