我有一个简单的错误,下面是您可以访问以查看手头问题的地址。
为什么部分页眉是白色的?它被设置为浅绿色,并且应该放置在最顶部(在顶部菜单下方),然后#menu 上的 60px margin-top 应该将其向下推到正确的位置并使整个区域变为绿色.
这是没有发生的事情,我一生都无法理解为什么。我删除了margin-top,它只将div向上推,但是我怎样才能将菜单放在正确的位置(我应该补充一点,带有登录名等的菜单已正确放置,但这只是那个未知的空白间隙,这就是问题所在)
-- 删除地址已解决
我有一个简单的错误,下面是您可以访问以查看手头问题的地址。
为什么部分页眉是白色的?它被设置为浅绿色,并且应该放置在最顶部(在顶部菜单下方),然后#menu 上的 60px margin-top 应该将其向下推到正确的位置并使整个区域变为绿色.
这是没有发生的事情,我一生都无法理解为什么。我删除了margin-top,它只将div向上推,但是我怎样才能将菜单放在正确的位置(我应该补充一点,带有登录名等的菜单已正确放置,但这只是那个未知的空白间隙,这就是问题所在)
-- 删除地址已解决
The margin-top that you're adding to #menu is what is causing that gap.
just add an top margin to your #wrapper
position: fixed sets your element on a fixed position with the standard behaviour for other elements to ignore this element anymore in fact your fixed element will overlay everything else, because it's not bound anymore to other elements and all elements after your fixed box will ignore the bounding box.
The content_background element has CSS property padding-top set to 10px. Remove that and it should be OK.