我正在使用固定位置作为背景来构建这个站点。问题是所有元素似乎都在滚动,除了背景。网站链接 http://automarketca.com/divasangola/index.php
非常感谢任何帮助。
谢谢你。
我正在使用固定位置作为背景来构建这个站点。问题是所有元素似乎都在滚动,除了背景。网站链接 http://automarketca.com/divasangola/index.php
非常感谢任何帮助。
谢谢你。
试试这个CSS,
background-attachment:scroll;
这将使 bg 随页面滚动。
#full-screen-background-image {
/*Existing Code */
position: absolute;
}
这将停止滚动。你也应该有一个z-index
很好的措施。
这是滚动尝试更改图像的css
z-index: -999;
min-height: 100%;
min-width: 1024px;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
更改固定为绝对
只需使用position: absolute;
其余属性和值将保持不变。