2012-07-25 91 views

回答

1

你可以添加top: -57px;您#navigation CSS像这样:

#navigation { 
    position: relative; 
    top: -57px; 
    clear: both; 
    margin-bottom: 3em; 
    display: none; 
    font: 14px/14px sans-serif; 
    border: 1px solid #D9D9D9; 
    background: white; 
    background: -webkit-gradient(linear, left top, left bottom, from(white), to(whiteSmoke)); 
    background: -webkit-linear-gradient(white, whiteSmoke); 
    background: -moz-linear-gradient(center top, white 0%, whiteSmoke 100%); 
    background: -moz-gradient(center top, white 0%, whiteSmoke 100%); 
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.03); 
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.03); 
    -moz-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.03); 
    border-radius: 5px; 
    -moz-border-radius: 5px; 
    -webkit-border-radius: 5px; 
} 
+0

谢谢!这工作。 – 2012-07-25 22:18:09

1

拨打的jsfiddle或发布您的代码,请。没有看到代码,首先想到的是你把#navigation放在内容区域。如果是这样的话,那么:

#navigation { margin-top: -50px; } 

如果#navigation绝对定位:

#navigation { top: -50px; }