css - Z-Index 在 IE7 中不起作用

标签 css internet-explorer

我在单击“删除”按钮时创建了对话框。它覆盖了父 Div。

它适用于除 IE 7 之外的所有浏览器。这里我提到了对话框和 div 的 Css。

dialog_box {
width:219px;
height:100px;
background-image:url(../images/preference/popup.png); background-repeat:no-repeat;
padding:10px;
position:absolute;
right:-10px;
z-index:50;
overflow:hidden;
}

Div{
border:solid 1px #ffffff;
padding:10px;
padding-left:30px;
padding-top:10px;
padding-bottom:10px;
position:relative;
text-align:left;
}

知道为什么会这样吗?

最佳答案

看不到 HTML 就很难了,我不确定 iframe 会如何影响这一点,但这似乎与 this question 是同样的问题。 ,所以 Davidyn 可能是对的。

我在IEs z-indexing上有一个帖子(更新:新的实时链接)带有一些插图,可能会让您更接近解决方案。

这篇文章现已下架,所以这里是 wayback machine's archive

关于css - Z-Index 在 IE7 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/948904/

相关文章:

internet-explorer - IE 11 "bulletproof"字体和后备字体不起作用

javascript - IE11 中 ko.protected Observable 的问题

javascript - 用于表单输入和清除状态的 mergeAttributes

Python + BeautifulSoup : How to get wrapper out of HTML based on text?

html - 为什么我的 Web 图片库中的元素在 iOS 上消失了?

javascript - 滚动时使 CTA 按钮粘在页面底部

javascript - 在view.py中显示一行基于if/else语句的html代码

javascript - 具有分隔列的 JSON 到 CSV

internet-explorer - 在现有 IE 实例中打开选项卡

javascript - 使用 CSS 和 jQuery 构建金字塔