Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
需要在浏览器底部附加页脚。当您滚动页面时,页脚不会移动。
我该怎么做?
#footer{ position: absolute; height: 60px; //or other fixed bottom: 0; left: 0; right: 0; }
这种样式应该包含您所有的页脚内容。无论您向下滚动多少,这都会使其粘在页面底部。
要制作相同的东西或放在一边,您还应该使用absolute。