Div Z-Index问题与Flash电影

Moh*_*eer 5 html javascript css flash xhtml

我有两个简单的HTML div,一个包含flash电影,另一个div包含简单文本,现在我的问题是我必须将文本div放到flash电影div上我正在做的是将两个div的位置设置为CSS中的绝对并设置闪光电影的Z-Index为1,文字div的Z-Index为2,但文字在电影背后,但我必须把文字放到电影上,请在这方面帮助我,以便我的文字可以出现到了flash电影上.提前致谢.

rah*_*hul 14

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

Flash内容和z-index

使用

<param name="wmode" value="transparent"> 
Run Code Online (Sandbox Code Playgroud)

来自Flash OBJECT和EMBED标记属性

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.
Run Code Online (Sandbox Code Playgroud)

  • 澄清一下:如果你正在使用`object`,请将其插入为`<object> ..other params .. <param name ="wmode"value ="transparent"/> </ object>`; 如果你正在使用`embed`,请使用`<embed ..other attrs .. wmode ="transparent"... /> (6认同)