0

我想要一个粘性页脚,我遵循了这个指南:http ://www.cssstickyfooter.com/using-sticky-footer-code.html

我有一个用于背景图像的外包装(容器)和一个内包装(容器2)。

我能够让页脚粘在底部,但 container2 中的背景图像并没有一直垂直向下重复。

请需要一些帮助。

4

1 回答 1

1

重复背景,确保你有css ..

background:url('path/to/image.png') repeat-y 0 0;

编辑:丑陋的黑客(工作) -

$('#container2').css('min-height',document.height - 30);

编辑:附加解决方案 -

将背景图像应用到正文

于 2011-03-04T21:27:54.977 回答