css停止图像在滚动中移动

css stop image moving on scroll

本文关键字:滚动 移动 图像 css      更新时间:2023-09-26

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

当我向上滚动时,如果鼠标在图像上,看起来图像也在滚动,看起来红色框几乎是固定的,但事实并非如此。

在某个点上似乎有2个滚动条。

我只想这样:https://jsfiddle.net/7n554u1t/4/.

我试过使用这个:

.img{
background-attachment: fixed;
}

但这会产生视差效果,我不希望这样。

尝试从更新app.cssline 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;