Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您查看此网页时:http ://www.google.com/nexus/7/
当您滚动时,您会看到背景图像似乎没有移动。
有没有为此的任何JQuery?
我想你想看看视差背景。
一个简单的视差滚动技术可能是一个很好的起点。如果您想使用它们,确实有 jQuery 插件可以简化该过程。
至于实际上有一个固定的图像(例如,一个不动的背景),这不是我认为你想要的,请查看background-repeat和background-attachment: fixed;.
background-repeat
background-attachment: fixed;