0

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

非常感谢任何帮助。

谢谢你。

4

4 回答 4

0

试试这个CSS,

background-attachment:scroll;

这将使 bg 随页面滚动。

于 2013-09-27T06:28:19.433 回答
0
#full-screen-background-image {
    /*Existing Code */
    position: absolute;
}

这将停止滚动。你也应该有一个z-index很好的措施。

于 2013-09-27T06:28:57.130 回答
0

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

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

更改固定为绝对

于 2013-09-27T06:30:40.530 回答
0

只需使用position: absolute;

其余属性和值将保持不变。

于 2013-09-27T07:39:09.090 回答