gpt4 book ai didi

html - 内部容器不重复-y 用于粘贴页脚

转载 作者:太空宇宙 更新时间:2023-11-04 16:28:00 24 4
gpt4 key购买 nike

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

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

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

需要一些帮助。

最佳答案

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

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

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

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

编辑:附加解决方案 -

将背景图像应用于正文

关于html - 内部容器不重复-y 用于粘贴页脚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5199443/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com