你好,我正在使用下面的库:http://pixelcog.github.io/parallax.js/,我有一个问题。
我依附于我的形象和我想要的样子
Image with problems
我的代码是:
Html:
<div class="parallax-window" data-parallax="scroll" data-image-src="<?php echo get_template_directory_uri();?>/recursos/imagenes/parallax-home.jpg"></div>Css
.parallax-window {
min-height: 400px;
background: transparent;
}谢谢
发布于 2015-10-23 11:23:37
更新css以使其具有宽度值,例如:
.parallax-window {
min-height: 400px;
background: transparent;
width: 100%;
}如果这不起作用,请尝试在css中设置位置,例如:
.parallax-window {
min-height: 400px;
background: transparent;
width: 100%;
position: absolute;
left: 0;
}https://stackoverflow.com/questions/33294317
复制相似问题