【发布时间】:2017-05-15 23:59:10
【问题描述】:
我正在尝试使用 bespoke.js 实现轮播。我的 codepen 的链接是Link。
How do I apply z-index to the slides, which are not in focus?
If I do z-index:1, then the whole orientation changes so, What should be done ?
【问题讨论】:
-
据我了解,您只需要活动幻灯片可见而其他幻灯片隐藏?
-
不隐藏,背景颜色与不在中心的幻灯片重叠。我只是想纠正一下
-
@aayushi 设置位置:相对于父级,然后在子级设置 z-index。留工作
-
你能展示一个演示吗,因为当我做同样的事情时,一切都会消失@DanielH
-
@aayushi 你的代码在那个codepen链接上好吗?
标签: html css z-index css-transforms bespoke.js