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.
我正在使用 jQuery Mobile、HTML 和 CSS 为移动设备制作网站,并且我刚刚设置了背景图片。我希望图像在滚动其余内容时保持不变。
将此添加到您的CSS
.yourClass{background-attachment:fixed;}