如何创建:固定的页脚
学习如何使用 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>
相关页面
教程:CSS 定位