网站:http://www.procolorchile.cl/
我需要将每个图像固定(在第一个之后)带有 Logo
这是类(class),但没有任何效果
.fullfondo {
height: 100vh;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
最佳答案
使用 css :nth-child(n+2)
.fullfondo:nth-child(n+2) {
height: 100vh;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
关于CSS |背景样式 - 固定在移动设备上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54754007/