【发布时间】:2022-01-15 02:24:32
【问题描述】:
header 和 footer 之间的 content 正在它们下方。我尝试将flex-start 和flex-end 设置为header 和footer,但它们没有转到absolute top。它们堆叠在内容的上方和下方。
表头的样式是
.Header {
width: 100%;
position: absolute;
top: 0;
flex-wrap: wrap;
}
页脚的样式是
.Footer {
width: 100%;
position: absolute;
bottom: 0;
flex-wrap: wrap;
}
内容的风格(如果有帮助的话)是
.Content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
【问题讨论】:
-
在此处添加 HTML 代码
-
请分享完整的代码 sn-p(HTML 和 CSS)以便正确理解您的问题。