css 停止图像在滚动条上移动

css stop image moving on scroll

我有以下布局:http://www.alessandrosantese.com/test/aldemair-productions/

当我向上滚动时,如果鼠标在图像上,它看起来像图像也在滚动,红框看起来几乎是固定的,但实际上不是。

某处似乎有 2 个滚动条。

我最希望的是:https://jsfiddle.net/7n554u1t/4/.

我试过用这个:

.img{

background-attachment: fixed;

}

但这会产生视差效果,我不想那样。

尝试在 app.css (line no - 2569) 更新您的 css 来自:

.off-canvas-wrapper {
    backface-visibility: hidden;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.off-canvas-wrapper {
    backface-visibility: hidden;
    position: relative;
    width: 100%;
}

删除 overflow-x: hidden; .