Flash电影的Div Z-Index问题

5
我有两个简单的HTML div,一个包含Flash电影,另一个div包含简单的文本。现在我的问题是我必须将文本div放到Flash电影div上。我所做的是在CSS中将两个div的位置设置为绝对定位,并将flash电影div的Z-Index设置为1,文本div的Z-Index设置为2,但是无论如何文本都会出现在电影后面。请帮助我解决这个问题,使我的文本可以显示在Flash电影上。提前致谢。
2个回答

14

这里有一篇博客文章,解释了这个问题。

Flash内容和z-index

使用:

<param name="wmode" value="transparent"> 

Flash OBJECT和EMBED标签属性

wmode

可能的值: window、opaque、transparent。设置Flash电影的“窗口模式”属性,用于在浏览器中实现透明度、分层和定位。

* window - movie plays in its own rectangular window on a web page.
* opaque - the movie hides everything on the page behind it.
* transparent - the background of the HTML page shows through all 
  transparent portions of the movie, this may slow animation performance.

6
澄清一下:如果你正在使用 object,请将它插入为 <object> ..其他参数.. <param name="wmode" value="transparent" /></object>;如果你正在使用 embed,请使用 <embed ..其他属性.. wmode="transparent" ... /> - K Prime
1
此链接已不存在:http://joshuaink2006.johnoxton.co.uk/blog/82/flash-content-and-z-index - Aadit M Shah

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接