简体   繁体   English

CSS 下拉菜单隐藏在 Google Chrome 中的 Flash(仅限)下。

[英]CSS drop-down menu hides under Flash (only) in Google Chrome.

I am having a problem with my CSS drop-down menu hiding under a Flash object.我的 CSS 下拉菜单隐藏在 Flash object 下时遇到问题。 I've read that it isn't a matter of adjusting the z-index, rather the Flash itself.我读过这不是调整 z-index 的问题,而是调整 Flash 本身。 Fair enough..很公平..

I've also read that setting the "wmode" parameter to "transparent" should fix everything.我还读到将“wmode”参数设置为“透明”应该可以解决所有问题。 It kind of works - the menu works in IE and Firefox, but not in Chrome.有点用 - 菜单在 IE 和 Firefox 中有效,但在 Chrome 中无效。 It still disappears under the Flash.它仍然在 Flash 下消失。

My code can be viewed at http://www.foolesweb.com/drafts/GreatShieldStore/index.html我的代码可以在http://www.foolesweb.com/drafts/GreatShieldStore/index.html查看

Any help would be appreciated - none of the forums I've visited seem to have this problem.任何帮助将不胜感激 - 我访问过的论坛似乎都没有这个问题。 Thanks in advance!提前致谢!

Try setting a z-index:1 on the ul that is the drop down menu.尝试在下拉菜单的ul上设置z-index:1

Also, you havent set a parameter on the object inside the object:此外,您还没有在 object 内的 object 上设置参数:

<object data="flash/store_slideshow.swf" type="application/x-shockwave-flash" width="888" height="601">
        <param name="movie" value="flash/store_slideshow.swf">
                    <param name="wmode" value="transparent">
            <!--<![endif]-->
        <a href="http://www.adobe.com/go/getflash">
        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
        </a>
            <!--[if !IE]>-->
</object>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM