Learn how to create a fixed/sticky footer with CSS.
<style>
.footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: red;
color: white;
text-align: center;
}
</style>
<div class="footer">
<p>Footer</p>
</div>
Try it Yourself »
Tip: Go to our CSS Position Tutorial to learn more about positioning.
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!