Div Z-Index问题与Flash电影

时间:2010-01-11 09:31:47

标签: javascript html css flash xhtml

我有两个简单的HTML div,一个包含flash电影,另一个div包含简单文本现在我的问题是我必须将文本div放到flash电影div上我正在做的是将两个div的位置设置为CSS中的绝对值并将flash movie div的Z-Index设置为1,将文本div的Z-Index设置为2,但文本在每种情况下都会在电影后面,但我必须将文本放到电影上,请在这方面帮助我,以便我的文字可能会出现在flash动画中。提前谢谢。

2 个答案:

答案 0 :(得分:14)

这是一篇解释此问题的博客文章

<强> Flash content and z-index

使用

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

来自 Flash OBJECT and EMBED tag attributes

  

<强> WMODE

可能的值:窗口,不透明,透明。设置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.

答案 1 :(得分:0)

我遇到了这个问题,Flash在我的飞出菜单前面。我尝试了两种不同的元素z-index重新排序技术,它们只适用于IE10。

今天早上,我尝试了适用于所有IE版本的内容,最低可达7个。

http://willstechcafe.wordpress.com/2013/06/20/overlays-vs-flash/

相关问题