任何帮助都会很高兴,我正在尝试进行视差滚动,但我的图像不断放大。
Parallax: Parallax http://www.shck.mx/tests/parallax.png
No-Parallax: No-Parallax http://www.shck.mx/tests/noparallax.png
我正在使用这个CSS代码:
#about {
background: url(../images/nevsky.jpg) 50% 0 no-repeat fixed;
height: 400px;
margin: 0px auto; margin-left: -80px; margin-top: 0px;
width: 120%;
max-width: 1320px;
position: relative;
box-shadow: 0 0 50px rgba(0,0,0,0.8);
box-sizing: border-box;
}