Flash 对象抢占弹出 Div 的舞台
我们在网站上运行 Flowplayer 视频播放器(通过 jQuery 方法),使用 jQuery UI 工具弹出 Div。
问题是,Div 被 FlowPlayer 淘汰,使得 Flow Player 具有更高的堆栈顺序。查看了其他一些论坛,我将一个解决方案添加到我的 Flowplayer 代码中。 w模式透明。
flowplayer("player", "URL", { wmode: "transparent", ... });
这适用于 Firefox,但在 IE7 和 8 中失败。因此我添加了位置和 z-index,但 IE7 和 8 显示 Flowplayer 抢占了弹出 div。如果有人遇到过这个问题,知道如何解决这个问题,或者有一些我可能忽略的东西,我将不胜感激。谢谢。
目前,Div 具有以下内容:
<div ... style="z-index:999; position:relative;"> ... </div>
编辑:即使没有位置和 z-index,它在 FF 中也能正确显示,但在 IE 中则无法显示。
We have Flowplayer video player running on the website (via the jQuery method), a Div Pop up with the jQuery UI tools.
The problem is, the Div is being out staged by flowplayer, making the flow player have a higher stack order. Having a look at some of the other forums, there was a solution that I added into my flowplayer code. wmode Transparent.
flowplayer("player", "URL", { wmode: "transparent", ... });
This works on Firefox, but fails in IE7 and 8. So I added the position and z-index, but IE7 and 8 are showing the Flowplayer upstaging the pop up div. If anyone has had this problem, know how to fix this issue or have something that I may have over looked, it would be greatly appreciated. Thanks.
Currently, the Div has the follow:
<div ... style="z-index:999; position:relative;"> ... </div>
Edit: Even without the Position and z-index, it displays correctly in FF, but not in IE.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定这是否有效,但您可能会尝试旧的“IE shim”技术,该技术包括在 div 后面粘贴一个 iframe,强制 IE 赋予它显示优先级。以下 SO 页面有一个 jQuery 插件的链接,可能会让您更轻松一些:
jQuery:IE6 中的窗口控件问题
I'm not sure if this will work, but you might try to old "IE shim" technique, which consists of sticking an iframe behind your div, forcing IE to give it display precedence. The following SO page has a link to a jQuery plugin that might make it a bit easier for you:
jQuery: Problem with windowed controls in IE6