css - CSS | 背景样式 - 固定在移动设备中不起作用
问题描述
网站: http: //www.procolorchile.cl/
我需要将每个图像固定(在第一个图像之后)带有徽标
这是课程,但没有任何效果
.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;
}
推荐阅读
- javascript - Javascript scrollIntoView 仅在直接父级中
- python - 如何在每 __ 秒 __ 次打印此消息的情况下实现这一点?
- database - OpenEdge 10.2A - 仅使用 .d1 和旧版本的 .db 文件生成数据库文件
- python - 对列中的所有行对执行操作
- domino-designer-eclipse - Domino Designer V10 性能问题
- django - 使用表单集工厂更新视图不起作用
- php - 带有学说的 Symfony 4:警告:发送 QUERY 数据包时出错。PID=2989
- chart.js - Chart.js 甚至在 x 轴下方显示条形溢出
- sql-server - 当 Powershell 执行时,SQL 作业步骤不会失败
- javascript - 当我使用 JS 拨打电话时,从 google api 获得 2 个响应