css - 如何使用 CSS 覆盖使用 Elementor 的幻灯片中不同图像的不同背景位置
问题描述
此主页幻灯片中的某些图像需要针对移动设备进行不同的定位,它是使用 Elementor 构建的,它只允许我对幻灯片中的所有图像应用相同的定位。
如何使用 CSS 覆盖此页面上每个背景图像的背景位置?我试过使用:nth-child() 没有运气。
这就是我要去的地方:
.elementor .elementor-background-slideshow__slide__image :nth-child(1) {background-position: center center!important;}
.elementor .elementor-background-slideshow__slide__image :nth-child(2) {background-position: center right!important;}
.elementor .elementor-background-slideshow__slide__image :nth-child(3) {background-position: center center!important;}
.elementor .elementor-background-slideshow__slide__image :nth-child(4) {background-position: center right!important;}
[https://andfriends.world/home-test-area][1]
非常感谢
解决方案
推荐阅读
- android - KeyboardVisibilityPlugin - 简单名称已定义
- git - Gitlab runner 无法使用来自 ~/.docker/config.json 的凭据进行身份验证
- python - 使用 selenium Web 驱动程序在 python 中解析 URL
- python - 谁能告诉我这个二进制搜索代码哪里出错了?无法向用户打印索引
- twilio - Twilio Ougoing 语音呼叫:令牌不允许首次尝试拨出电话
- angular - Angular 8 测试时无法获取 Injector
- python - `tf.nn.space_to_depth` 是否有等效的 PyTorch 函数
- android - 无论在android中垂直对齐的字数如何,如何为多个文本视图设置相等的宽度?
- javascript - JS 保留以零结尾的小数
- windows - 如何使从 docker linux 容器内部创建的符号链接可以从 Windows 主机看到(如果需要,可能涉及 samba)