在 Internet Explorer 中对 Flash 影片进行 DIVS

发布于 2024-10-08 19:29:33 字数 738 浏览 0 评论 0原文

老问题了……为什么定位在 Flash 对象上的 div 不保持在 z-index 的顶部呢?我过去已经找到了答案,但时间太久了,我似乎无法得到答案。我的 Flash 影片位于左侧浮动的 div 中:

<div id="flash">
<object width="614" height="289">
<param name="movie" value="images/75.swf">
<param name="wmode" value="transparent">
<embed src="images/75.swf" width="614" height="289" wmode"transparent">
</embed>
</object>
</div>

我需要位于顶部的 div 的 css 是:

.menu ul li:hover ul li a:hover {
background:#5a3f2d;
color:#FFF;
z-index: 9999;

我无法让它在 ie6 或 ie8 中显示在 Flash 影片上方。我知道这是老派,但我很沮丧!我的 nav div 需要有绝对位置吗?这就是它不起作用的原因吗?

示例如下此处。将鼠标悬停在右侧的第一个链接上:“客户服务”

谢谢大家:)

The age old question... why the hell doesn't a div positioned over a flash object stay on top with z-index. I have found the answer in the past, but it's been so long, I can't seem to get it. My flash movie is in a div floating left:

<div id="flash">
<object width="614" height="289">
<param name="movie" value="images/75.swf">
<param name="wmode" value="transparent">
<embed src="images/75.swf" width="614" height="289" wmode"transparent">
</embed>
</object>
</div>

My css for the div that needs to be on top is:

.menu ul li:hover ul li a:hover {
background:#5a3f2d;
color:#FFF;
z-index: 9999;

I cannot get it to show above the flash movie in ie6 or ie8. I know this is old school but I'm frustrated! Does my nav div need to have an absolute position? Is that why it doesn't work?

Example is here. Hover over the first link on the right: "CUSTOMER SERVICE"

Thanks all :)

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

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

发布评论

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

评论(4

魔法少女 2024-10-15 19:29:33

希望这会对您有所帮助,
请看一下。
http://manisheriar.com/blog/flash_objects_and_z_index

Hope this will help you ,
please take a look on.
http://manisheriar.com/blog/flash_objects_and_z_index

我偏爱纯白色 2024-10-15 19:29:33

我使用了以下内容,它对我有用。

<param name="wmode" value="opaque" />

我在 为什么 IE 中的 Z-Index 没有按照 Flash 电影应有的方式渲染?

I used the following and it worked for me.

<param name="wmode" value="opaque" />

I found this solution at Why doesn't Z-Index in IE render the way it's supposed to over a Flash Movie?

只涨不跌 2024-10-15 19:29:33

我在周围和论坛上看到了很多这样的问题,但是为了明确这一点,应该添加这两个选项以避免某些版本停止工作:

<param name="wmode" value="opaque" />

<embed wmode="opaque" src="...">

src:
http://manisheriar.com/blog/flash_objects_and_z_index

I've seen many of these questions around and forums, but to let this clear, both options should be added in order to avoid from some versions to stop working:

<param name="wmode" value="opaque" />

and

<embed wmode="opaque" src="...">

src:
http://manisheriar.com/blog/flash_objects_and_z_index

何其悲哀 2024-10-15 19:29:33

将父容器(表)和/或同级容器(另一个“td”标签)的 z 索引设置为 1 可能会有所帮助

It might help to give the parent container (the table) and/or sibling container (the other "td" tag) a z-index of 1

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