我有两个简单的HTML div,一个包含Flash电影,另一个div包含简单的文本。现在我的问题是我必须将文本div放到Flash电影div上。我所做的是在CSS中将两个div的位置设置为绝对定位,并将flash电影div的Z-Index设置为1,文本div的Z-Index设置为2,但是无论如何文本都会出现在电影后面。请帮助我解决这个问题,使我的文本可以显示在Flash电影上。提前致谢。
这里有一篇博客文章,解释了这个问题。
使用:
<param name="wmode" value="transparent">
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.
我曾经遇到过Flash覆盖我的弹出菜单的问题。我尝试了两种不同的元素z-index重新排序技术,但它们只适用于IE10。
今天早上,我尝试了一些方法,可以适用于所有版本的IE,甚至是7。
http://willstechcafe.wordpress.com/2013/06/20/overlays-vs-flash/
object
,请将它插入为<object> ..其他参数.. <param name="wmode" value="transparent" /></object>
;如果你正在使用embed
,请使用<embed ..其他属性.. wmode="transparent" ... />
。 - K Prime