当wmode=window时如何将html内容放在flash上?
这可能吗?
情况是,我不控制嵌入的flash,我无法知道它是嵌入wmode=transparent/opaque还是wmode=window。 这意味着在前两种情况下,我可以将 html 内容放在顶部,只需使用 z-index,但在最后一种情况(wmode=window)中我无法控制。
有人知道解决这个问题的方法吗?
Is this even possible?
The situation is, I don't control the embedded flash, and I have no way of knowing whether it is embedded with wmode=tranparent/opaque or wmode=window. This means in the first 2 situations I can put my html content on top, just by using z-index, but in the last situation (wmode=window) I have no control.
Does anybody know a way to overcome this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你不能, wmode=window 的全部目的是将插件放在主浏览器窗口顶部的覆盖窗口中 - 浏览器实际上不可能在其顶部绘制。
You can't, the whole point of wmode=window is to put the plugin in an overlay window that goes on top of the main browser window - it isn't actually possible for the browser to draw on top of it.
尝试一些称为 iframe shim 的东西。 不确定它的交叉兼容性如何,但它对我有用
Try something called iframe shim. not sure how cross-compatible it is, but it works for me
我不知道这样做的原因是什么,但我已经这样做了,只需为具有绝对位置和 z-index 的 html 最外部内容提供一些纯色背景色,它就会通过 wmode=window 的 flash 来显示。 我在 2010 年的一个项目中就这样做了。当时主要问题是 IE 和 chrome。
I don't know what is the reason for this but I have done this, just give some solid background color to the html most outer content with absolute position and z-index and it comes over flash with wmode=window. I did that in one of my projects back in year 2010. Main issue was IE and chrome at that time.