简体   繁体   中英

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?

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 . Then use background-position to anchor the image to the bottom corner and repeat it horizontally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM