parallax.js 有问题吗

问题描述

我在 JavaScript 中使用视差 当页面第一次加载时,parallax.window 图像会浮出水面 但是当我调整页面大小时一切正常 我的代码

    <div class="body">
     <div class="parallax-window" data-parallax="scroll" data-image-src="img/img.png">  
     </div> 
    </div>
<!-- style  --> 

    <style>
    .parallax-window {
    height: 500px!important;
    background: transparent;
    background-position: center;
    background-attachment: cover;
    padding: 0px!important;
    margin: 0px!important;
}
`.body{
  width: 100% !important;
  margin: 0px;
  background-color: transparent;
}`

预览 (preview of the issue.jpg)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)