在Flash嵌入式前面放置div [英] Placing a div in front of a flash embed

查看:170
本文介绍了在Flash嵌入式前面放置div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将div标签放在页面上的所有其他位置。我读过设置wmode param到opaque将会做到,但也听说,将只会影响IE。这是真的?

I need to place a div tag above literally everything else on the page. I've read that setting wmode param to opaque will do it, but also heard that that will only effect IE. Is this true? How do you do it?

推荐答案

在您的Flash applet标记中,只需具有:

In your flash applet tag, simply have this:

<object id='flashObject' ....>
    <param ....>
    <param name='wmode' value='opaque'>
    <embed ... wmode='opaque'>
    </embed>
</object>

这应该可以解决。

注意,这样做的缺点是它会减慢Flash影片和页面元素的渲染速度,但在大多数情况下不应该是一个问题。

Note that the downside of this is it slows down rendering for both the flash movie and page elements, but shouldn't be a problem in most cases.

按照MidnightLighning的注释编辑

一旦Flash对象以这种方式准备好,您需要将div悬浮在页面上,如下所示:

Once the flash object is prepared in this way, you need to float the div over the page, like so:

<body>
    <object> ... <!-- this is your flash movie --> </object>
    <div id="floater">The Floating Div</div>
</body>

然后按如下方式创建CSS:

Then create your CSS like this:

#flashObject { position:relative; z-index:1 }
#floater { position:absolute; z-index:100; top:0; left:0; }

这篇关于在Flash嵌入式前面放置div的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆