<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>粘性页脚测试</title>
<style>
.Site {
display: flex;
min-height: 90vh;
flex-direction: column;
}
.Site-content {
flex: 1;
}
</style>
</head>
<body class="Site">
<header>头部</header>
<main class="Site-content">
</main>
<footer>页脚</footer>
</body>
</body>
</html>
使用flex属性做一个粘性页脚
最新推荐文章于 2024-04-27 21:35:02 发布