重叠 2 个 Flash 对象并控制 z-index
我的网页上有两个 Flash 对象(称为 A 和 B),它们重叠,因此一个对象部分遮挡了另一个对象。我似乎无法控制 z-index,迫使 B 位于 A 前面。无论我尝试什么,A 总是“获胜”并保持在顶部!
我读过很多人的帖子,内容涉及如何让 HTML 在 Flash 之上显示的问题……但没有提到当两个重叠项目都是 Flash 对象时。
- 我尝试过
wmode=opaque/transparent/window
的各种组合 - 我尝试过 CSS
position:absolute/relative
和z-index:0/999
> - 我尝试以不同的顺序放置 HTML 部分
- IE 和 Firefox 中的问题是相同的
- 我不想在这种情况下使用 jQuery
在我的特殊情况下 B 必须有 position:absolute
和 < code>wmode=transparent,位于A上方。A需要相对定位,不要求透明。 但是,我一直在没有这些限制的情况下进行测试,并且我仍然无法控制重叠。某些 SWF(我们的 SWF 是客户发送的广告)是否以覆盖 z-index 的任何代码控制的方式创建?
如此安排的原因是,A 是页面顶部的标准横幅广告,B 是“卷页”效果,其中一角从页面右上角剥落。
感谢您提供的任何建议。
I have two Flash objects on a webpage (call them A and B), and they overlap so one partially obscures the other. I don't seem to have any control over the z-index, to force B in front of A. Whatever I try, A always 'wins' and stays on the top!
I have read many people's posts about problem with getting HTML to show over the top of Flash...but nothing about when your two overlapping items are both Flash objects.
- I have tried various combinations of
wmode=opaque/transparent/window
- I have tried CSS
position:absolute/relative
andz-index:0/999
- I have tried placing the HTML sections in a different order
- The problem is the same in IE and Firefox
- I do not want to use jQuery in this case
In my particular situation B must have position:absolute
and wmode=transparent
, and sit above A. A needs relative positioning and transparency is not required. However, I have been testing without these restrictions, and I still have no control over the overlap. Are some SWFs (ours are adverts sent by clients) created in such a way as to override any code control of z-index?
The reason for this arrangement is that A is a standard banner advert at the top of the page, and B is a 'page curl' effect where a corner peels down from the top right of the page.
Thanks for any advice you can give.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我设法通过摆脱
然而,不同的广告 SWF 没有响应此更改,并且仍然显示在我的页面卷曲/角剥离上方。
I managed to control the situation for one of my advert banners by getting rid of the
<object>
tag and just using<embed>
on it's own. Then thewmode=opaque
trick worked in both IE and Firefox.However, a different advert SWF did not respond to this change, and still shows above my page curl/corner peel.