简体   繁体   English

Chardin.js绝对定位的z-index问题

[英]Chardin.js absolutely positioned z-index issue

I'm trying to add a basic tour to this project using Chardin.js: Click green marker here 我正在尝试使用Chardin.js向该项目添加基本导览: 单击此处的绿色标记
But I can't seem to get the button to rise above the overlay. 但我似乎无法使按钮升到覆盖层上方。

I already found this via Google, but it provides no real answer. 我已经发现这个通过谷歌,但它没有提供真正的答案。

Any ideas? 有任何想法吗?

Just in case this helps anyone else out....I was setting the parent z-index by adding a class to make it the active layer, but this was forcing the button below the overlay. 以防万一这可以帮助其他人。...我通过添加一个类将其设置为活动层来设置父级z-index,但这是强制覆盖下面的按钮。 So in instances where the overlay is shown, I now make the parent div z-index:auto which allows the button back on top of the overlay. 因此,在显示叠加层的情况下,我现在使父div z-index:auto允许按钮返回叠加层顶部。

Solution: 解:

.stay-visible 
{
  z-index: 9999999;
  opacity: 0.8;
  position: relative;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM