【问题标题】:Fancybox in mobile device is not working well ,fancybox overlay hide the fancybox wrap.移动设备中的 Fancybox 无法正常工作,fancybox 覆盖隐藏了 fancybox 包装。
【发布时间】:2014-05-15 09:49:27
【问题描述】:

Here 是我的链接,花式框在笔记本电脑和台式机的所有浏览器中都可以正常工作,但是当您在移动设备特别是移动设备(如 I-PAD)中打开它时,覆盖层会隐藏整个内部 html 内容。您的回答将不胜感激。

为了检查花式框点击顶部菜单有登录注册图标,你可以点击页脚电子邮件警报按钮。

【问题讨论】:

标签: jquery css fancybox


【解决方案1】:

快速查看链接似乎是由这行 css 引起的:

.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 999999999999;
    background: url("http://design.mobulous.com/Watch/css/../images/fancybox_overlay.png");
}

尝试将 z-index 更改为更低的值,例如:

.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 99999;
    background: url("http://design.mobulous.com/Watch/css/../images/fancybox_overlay.png");
}

此外,如果您希望将花式框覆盖在其他内容之上,您还需要将 pollSlider 元素上的 z-index 更改为更低的值,例如 999。即

.pollSlider {
    position: fixed;
    height: 100%;
    width: 310px;
    right: 0px;
    margin-right: -310px;
    z-index: 999;
    background: #e6e6e5;
}

【讨论】:

  • 我知道这一点,但问题是这个手表网站在其他页面中有很多插件和 div,其中一些 div 的 z-index 更高,但是当我放的 z-index 高于 z-index infancyboz pagewrap, overlay 隐藏了移动设备中的 pagewrap 你可以通过更高的 z-index 来做点什么
  • 对,但似乎浏览器有限制 - stackoverflow.com/questions/491052/… 另外,从使用网络检查器调试来看,在 ipad 上的 safari 中,fancybox 的“内容”似乎不在“覆盖”div 中。因此,由于现在在 html 中的“内容”之后定义了“覆盖”,并且它们都具有相同的 z-index 值,因此它将位于顶部。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-06-12
  • 2014-01-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多