CSS |背景样式 - 固定在移动设备上不起作用

标签 css background-image fixed

网站: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/

相关文章:

html - 垂直对齐从不响应

css - 停止css按钮在点击时改变位置

html - 为什么最小高度在我的页面上不起作用?

apache-flex - 使用 flex 4 时将背景图像添加到 mx 组件

html - 如何防止内容消失在固定标题后面?

html - Z-index in position fixed under position fixed 元素

css - 导航栏 laravel 中的背景颜色

css - img src SVG 使用 CSS 改变样式

css - 背景图像 css 不会在 asp.net 中显示

c# - lockbits 是否需要固定?