2011-09-03 94 views
2

由于某些原因,我的内容区域,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; 
} 
+0

你可以发布你使用的HTML吗,所以我们知道这些元素被放置在哪里? – animuson

回答

2

您有链接我们可以检查吗?

请尝试使用“padding-top:150px”,除非有阻止您这么做的事情发生,否则大多数情况下都会起作用。否则,如果适用,尝试使用“zoom:1”,“display:block”,“position:relative”的常规技巧。

+0

填充技巧奏效,谢谢!这么简单,但很容易错过。 – Amy

相关问题