我如何使iframe尊重z-index在IE? [英] How can I make iframe respect z-index in IE?

查看:176
本文介绍了我如何使iframe尊重z-index在IE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有一个youtube iframe元素,但它在我的菜单项旁边。当我将鼠标悬停在某个菜单项上时,会打开一个部分覆盖iframe的子菜单(因为它的位置,这不是明确的功能)。这在Firefox中工作正常,但像往常一样,它不在IE中,这里的iframe涵盖了菜单,使它基本上不可读。是否有一个选项,我需要添加到iframe,使其工作或者它是根本不可能?

I have a youtube iframe element in my website, but it's next to my menu items. When I hover over a menu item, a submenu opens that partially covers the iframe (because of it's position, that's not it's specific function obviously). This works fine in Firefox, but as usual, it doesn't in IE, here the iframe covers the menu, making it basically unreadable. Is there an option I need to add to the iframe to make it work or is it just plain impossible?

(目前测试与IE9)

推荐答案

尝试使用Youtubes iframe嵌入方法(如果这不是你已经在做的,并添加:
?wmode = (如果不是第一个url变量,则替换为&)

Try using Youtubes iframe embed method (if thats not what you are already doing, and add: ?wmode=transparent to the url (replace ? with & if it is not the first url variable)

这篇关于我如何使iframe尊重z-index在IE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆