【发布时间】:2013-12-30 04:31:03
【问题描述】:
实际上我使用 Internet Explorer 10 并看到我的代码存在一些问题,此代码在所有浏览器中都可以正常工作,没有问题只会给我问题 IE
我的代码:
<style>
#web_header_sub_data
{
top:-60px;
position:relative;
width:980px;
height:96px;
margin:auto;
z-index:1;
}
#login_s_window_background
{
top:1px;
position:absolute;
position:fixed;
left:50%;
margin-left:-50%;
width:100%;
height:150%;
background-color:#111111;
z-index:9;
background:rgb(17,17,17,0.7);
background:rgba(17,17,17,0.7);
}
</style>
<div id="web_header_sub_data">
<div id="login_s_window_background"></div>
</div>
在所有浏览器中,我看到名为 login_s_window_background 的 div 显示在所有 div 上,没有问题,只有 Internet Explorer 看到不好,在其他 div 下,你怎么看,z-index 它更高的其他 div 必须显示在其他 div 上
我不明白为什么没有在所有浏览器中都可以正常工作
Howewer 对此进行了一些修复,如果响应是肯定的,请告诉我如何修复它
谢谢,问候
【问题讨论】:
标签: internet-explorer css z-index