[英]How to make a background image stays in the botton and cover the full height
How can I make all my pages have the same background feeling as my homepage . 如何使所有页面具有与主页相同的背景感。 For example if you see this page you can see the background is out of place. 例如,如果您看到此页面,则可以看到背景不正确。 Let me know if you want me to send you the code but pretty much you can see it at these pages. 让我知道是否要发送代码,但是您几乎可以在这些页面上看到它。 Thanks a lot! 非常感谢!
PS: Any other way besides using position fixed? PS:除了使用固定位置以外,还有其他方法吗?
Try a different approach... Instead of using 2 different gradients in two different div's ( #hhbg
and #footer
), just combine the two gradients into one image and apply it as a background to, for example, body
. 尝试不同的方法...不用在两个不同的div中使用两个不同的渐变( #hhbg
和#footer
),只需将两个渐变组合到一个图像中,然后将其作为背景应用于例如body
。 Then use background-position
to anchor the image to the bottom corner and repeat it horizontally. 然后使用background-position
将图像锚定到底角并水平重复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.