2012-11-02 37 views

回答

2

添加 「位置:親屬」 到#masthead:

#masthead {position: relative;} 

然後用絕對位置定位您的導航:

#site-navigation { 
    position: absolute; 
    bottom: 0; /* or top, if you prefer */ 
    right: 0; 
} 
+0

非常感謝您! – pangi

+0

還有一件事。看起來,如果我這樣做,相比於導航,標題圖像稍微更靠上...爲什麼是這樣? – pangi

+1

標題可能有一些填充,或者圖像有些空間。你所需要做的就是改變底部:0到底部:10px,或任何可以給你想要的效果的數字。 – coopersita