css - 如何修复 CSS 背景位置

标签 css background position fixed

我正在使用固定位置作为背景来构建这个网站。问题是 除了背景,所有元素似乎都在滚动。 网站链接 http://automarketca.com/divasangola/index.php

非常感谢任何帮助。

谢谢。

最佳答案

这是用于滚动的 css,尝试更改图像的 css

z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;

将固定更改为绝对

关于css - 如何修复 CSS 背景位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19044030/

相关文章:

css - Bootstrap 中的固定列

javascript - 如何管理 Web 应用程序中的 CSS 和 JS 文件结构(自定义与插件)?

html - div 背景中并排有许多图像

css - 正文宽度为页面而非屏幕的 100%

css - 更准确的位置CSS

css - 具有不同值的手写笔循环

html - :first-child not working on label (hidden radio button)

css - 如何使用 JSF 和 CSS 为表格行获取渐变背景?

CSS:绝对位置问题

css - 如何在没有绝对位置的情况下将图像放置在图像上