我已经尝试过使这项工作的方法。主要是在尝试这个解决方案。
那对我没有用。我确实看到的问题是,在我的 body html css 中,我确实将高度设置为 100%,但它并没有真正将其设置为 100%。
这是我的页脚和正文 html 的 CSS 代码:
body {
font-family: 'AG-Regular', Helvetica, Arial, sans-serif;
margin: 0;
min-width: 1058px;
}
body, html {
height:100% !important;
}
#footerBox {
width: 100%;
height:218px;
background-image:url(/img/footer-bg.png);
background-attachment:scroll;
background-repeat:repeat-x;
}
你应该看看它在哪里搞砸了。任何帮助将不胜感激。谢谢。