无法获取 Flash 文件上方的 CSS 下拉菜单
我已经搜索了所有内容并尝试了所有我能掌握的方法,但无法让 CSS 下拉菜单显示在 Flash 文件上方。
您可以访问:http://beta.riverlifefellowship.com,用户名是“riverlife”,密码是“ flow'(两者都没有引号)。
我正在使用 swfObject 并设置了 。下拉菜单周围的 div 是绝对位置,z-index 为 9999,flash 文件周围的 div 是相对位置,z-index 为 -1
任何有关尝试的建议都非常感谢!
[注意:它适用于 Mac 操作系统上的所有浏览器,但不适用于 Windows 操作系统上的浏览器]
I have searched everything and tried every method I can get my hands on and cannot get my CSS drop-down menus to display above my Flash file.
You can go to: http://beta.riverlifefellowship.com and username is 'riverlife' and password is 'flow' (without the quotes on both).
I am using swfObject and have the <param name="flashvars" value="wmode=opaque"/>
set. The div around the drop down is absolute position with z-index of 9999 and the div around the flash file is relative position with z-index of -1
Any suggestions of things to try is greatly appreciated!
[Note: It is working in all browsers on Mac OS but no browsers on Windows OS]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
将 Flash 上的 wmode 属性设置为透明 - 通常可以
编辑:
您正在使用
Set the wmode property on the Flash to transparent - that usually works
EDIT:
You are using
<object>
to embed the .swf - which is one way, but<embed>
will work across more browsers and will actually solve the problem for the most part, combined with the wmode you already have set. Adobe Dreamweaver has a nice way of creating some javascript that handles the choice of or<object>
based on the browser. But without that your code should basically look like this. (This is tested in Firebug and worked)除非您确实需要透明度(即,您的Flash影片具有透明背景),否则最好的选择是使用
opaque
作为wmode
,将会比transparent
具有更好的性能。只有wmode="window"
(默认设置)会阻止浏览器在 Flash 上进行绘制。http://www.communitymx.com/content/article.cfm?cid= e5141
Unless you actually need the transparency (i.e., you flash movie has a transparent background), the best choice is to use
opaque
for thewmode
which will have better performance thantransparent
. Onlywmode="window"
(which is the default) prevents the browser from drawing on top of the flash.http://www.communitymx.com/content/article.cfm?cid=e5141
你把wmode设置成透明了吗?
Did you set the wmode to transparent?
您的下拉菜单将使用
position:absolute
。编辑:
我有一个类似的案例,顶部有一个下拉菜单,下面有一个 Flash 对象。在我的例子中,菜单有
position:absolute
和 flash 对象wmode="opaque"
。也许还值得一提的是,菜单位于带有
overflow: auto
的容器 div 和 flash 对象中。这对我有用。好吧,让我们写下这个..
Your drop down menu will work with
position: absolute
.Edit:
I got a similair case where I also got a dropdown menu at the top and a flash object beneath it. In my case the menu has
position: absolute
and the flash objectwmode="opaque"
.Maybe it's also worth mentioning that the menu is in a container div with
overflow: auto
and the flash object as well. This works for me.Ok let's write this down..