[英]Library parallax.js
Hello I'm using the following library: http://pixelcog.github.io/parallax.js/ and I have a problem. 您好,我正在使用以下库: http : //pixelcog.github.io/parallax.js/ ,我遇到了问题。
I am attached as my image and how I want it to look me 我依附为我的形象,以及我想要它如何看起来
My code is: 我的代码是:
Html: HTML:
<div class="parallax-window" data-parallax="scroll" data-image-src="<?php echo get_template_directory_uri();?>/recursos/imagenes/parallax-home.jpg"></div>
Css 的CSS
.parallax-window {
min-height: 400px;
background: transparent;
}
Thanks 谢谢
Update your css to have a width value, such as: 更新您的css以使其具有宽度值,例如:
.parallax-window {
min-height: 400px;
background: transparent;
width: 100%;
}
If that doesn't work, try setting the positioning in the css, such as: 如果这不起作用,请尝试在css中设置位置,例如:
.parallax-window {
min-height: 400px;
background: transparent;
width: 100%;
position: absolute;
left: 0;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.