在 Internet Explorer 中对 Flash 影片进行 DIVS
老问题了……为什么定位在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
希望这会对您有所帮助,
请看一下。
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
我使用了以下内容,它对我有用。
我在 为什么 IE 中的 Z-Index 没有按照 Flash 电影应有的方式渲染?
I used the following and it worked for me.
I found this solution at Why doesn't Z-Index in IE render the way it's supposed to over a Flash Movie?
我在周围和论坛上看到了很多这样的问题,但是为了明确这一点,应该添加这两个选项以避免某些版本停止工作:
和
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:
and
src:
http://manisheriar.com/blog/flash_objects_and_z_index
将父容器(表)和/或同级容器(另一个“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