我有以下结构:
<header></header>
<nav></nav>
<section id="mainContainer">
<section id="innerContainer">
</section>
</section>
<footer></footer>
并遵循css:
html {
height: 100% !important;
}
body {
height: 100% !important;
}
body header {
min-width: 1280px;
height: 78px;
}
body nav {
height: 41px;
}
body section#mainContainer {
height: 100%;
}
body section div#innerContainer {
height: 100%;
}
body footer {
height: 48px;
}
主要目标是 - 制作粘性页脚。但是像这样的 css 配置只会让滚动出现在我的页面上。我ve already tryed all possible variations of making sticky footers, but all of them gave me the same result. What I
做错了。