我正在試圖製作一種從上面其他div元素後面出現的頁腳。背景上的固定元素
An example is the Pitchfork website with the footer on the bottom.
我試圖做到這一點在CSS:
#footer {
overflow: hidden;
}
#footer .text {
position: fixed;
}
或者,我可以把它固定,通過設置網站的總高度將它移動到頁面的底部。但這只是複雜的。
任何想法或簡單的教程如何做到這一點?