css - Google Chrome、Flash 和 z-index 错误行为

标签 css flash google-chrome z-index wmode

Google Chrome 无法正确显示 Flash 视频的 z-index。

看看http://maxusglobal.com/在 Firefox 或 Internet Explorer 中。

现在在 Chrome 中查看它。

页面顶部的大视频应该在其顶部有一个“预览”图像的 z 索引。它适用于 Firefox 和 Internet Explorer,但不适用于 Google Chrome。

这似乎不是 WebKit东西,但特别是 Chrome 错误。

我已经尝试了所有的 wmodes(不透明、窗口和透明),但这并不能解决问题。我也改了Flash盒子的z-index,还是不行。

最佳答案

添加wmode="transparent"给你的<embed>标签。像下面这样。

<embed wmode="transparent" 
       height="314" width="516"
       type="application/x-shockwave-flash" 
       id="player"
       name="page_player" 
       src="/swfs/player.swf" 
       allowscriptaccess="always"
       allowfullscreen="true" 
       flashvars="file=/attachments/files/u_t_o_N_1.mp4">

并隐藏hello的div图片(如果不需要)。

希望对您有所帮助!

关于css - Google Chrome、Flash 和 z-index 错误行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4313364/

相关文章:

javascript - 为什么即使 onError 处理程序捕获异常后,chrome 仍然会记录丢失图像的 404(未找到)错误?

javascript - 如何每隔一定时间间隔显示一次div

ASP.NET Javascript 时钟

javascript - 如何通过 JavaScript 找出 Flash (.FLV) 视频的帧速率?

Android - 我们可以使用 flash 文件(.flv 或 .swf)为 Android 设备制作动态壁纸吗?

google-chrome - iOS Chrome 问题

Magento - 从服务器收到重复的 header

javascript - 在简单的 Accordion 小部件中切换向上和向下箭头

html - 字段集左右 css

css - 如何更改或删除 css 中的引号