簡體   English   中英

庫parallax.js

[英]Library parallax.js

您好,我正在使用以下庫: http : //pixelcog.github.io/parallax.js/ ,我遇到了問題。

我依附為我的形象,以及我想要它如何看起來

圖像有問題

我的代碼是:

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;
}

謝謝

更新您的css以使其具有寬度值,例如:

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

如果這不起作用,請嘗試在css中設置位置,例如:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM