HTML CSS使背景图像变为静态 [英] HTML CSS Making the background image static
本文介绍了HTML CSS使背景图像变为静态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想这样做,因此背景图片在网站上下滚动时保持在同一位置(静态)。
I'd like to make it so the background image stays in the same place (static) while the website scrolls up and down. How do I go about doing this?
推荐答案
background-attachment:fixed;
应该这样做我相信。
这篇关于HTML CSS使背景图像变为静态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文