由于某些原因,我的内容区域,150px顶部的边距在Internet Explorer中不起作用,因此内容将在标题下方进行。任何帮助?我知道在Internet Explorer中通常修复有点奇怪,但奇怪的是,这似乎是工作,只是内容开始在页面顶部而不是150px下来。Div的保证金在Internet Explorer中不起作用
html {
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
overflow-x: auto;
}
body {
background-color: #FBFBFB;
margin:0;
padding:0;
}
#header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 150px;
background-color: #FBFBFB;
z-index: 100;
}
#sidebar {
position: fixed;
top: 150px;
left: 0;
width: 275px;
height: 100%;
z-index: 100;
}
#content {
width: 837px;
margin-top: 150px;
margin-left: 325px;
overflow: auto;
}
你可以发布你使用的HTML吗,所以我们知道这些元素被放置在哪里? – animuson