編輯:添加大量的空白(只是一堆新的線)解決了這個問題,雖然我覺得這是有點中世紀,我試圖找到更專業的解決方案。側邊欄重疊在頁腳 - 在wordpress中創建的網站
http://juniorgoldreport.com/about-us/ - 如果您向下看右下角(頁腳/最近的帖子),就是例子。
據我所知,這是一個position:absolute
問題,這就是爲什麼,但我不能找出解決方案。網上的人有類似的問題,我已經找到並試用了他們的解決方案,但即使在與他們一起玩,我也無法解決它。這是我能找到的最接近的解決方案:
#main {
overflow: hidden; /* needed to stretch parent container since children are floated */
}
#primary.content-area {
width: 68%;
float: left;
}
.site-main .sidebar-container {
position: static;
float: right;
width: 30%;
height: auto;
}
.sidebar .entry-header, .sidebar .entry-content, .sidebar .entry-summary, .sidebar .entry-meta {
padding: 0;
}
但當時我只是頁腳拍攝WAYY下降到頁面底部(空空間的好500+像素)。
也許使用'position:fixed'將頁腳固定到底部,並使用z-index將它移到側欄上方。 – TricksfortheWeb
另外,你有沒有檢查過你的導航下拉菜單是如何反應的?這不是你唯一的問題。 – TricksfortheWeb
@TricksfortheWeb我會看看位置:固定解決方案。我只是擔心這會影響所有其他頁面(這是可以的),當我試圖解決有關頁面的問題。我明白你對導航欄下拉的含義,你指的是它如何重疊? – Robolisk