Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/423.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 库视差.js_Javascript_Css_Background_Parallax.js - Fatal编程技术网

Javascript 库视差.js

Javascript 库视差.js,javascript,css,background,parallax.js,Javascript,Css,Background,Parallax.js,您好,我正在使用以下库:我有一个问题 我是作为我的形象和我希望它如何看我的附件 我的代码是: Html: 谢谢更新css,使其具有宽度值,例如: .parallax-window { min-height: 400px; background: transparent; width: 100%; } .parallax-window { min-height: 400px; background: transparent; width: 100

您好,我正在使用以下库:我有一个问题

我是作为我的形象和我希望它如何看我的附件

我的代码是:

Html:


谢谢

更新css,使其具有宽度值,例如:

.parallax-window {
    min-height: 400px;
    background: transparent;
    width: 100%;
}
.parallax-window {
    min-height: 400px;
    background: transparent;
    width: 100%;
    position: absolute;
    left: 0;
}
如果这不起作用,请尝试在css中设置定位,例如:

.parallax-window {
    min-height: 400px;
    background: transparent;
    width: 100%;
}
.parallax-window {
    min-height: 400px;
    background: transparent;
    width: 100%;
    position: absolute;
    left: 0;
}

谢谢你的回答,但问题仍然存在。图像已经100%,但没有放大,因为。