【问题标题】:How to bring previous and next button by default in fancybox 2 in jquery?如何在jquery的fancybox 2中默认带上一个和下一个按钮?
【发布时间】:2014-08-06 07:39:56
【问题描述】:

我正在使用http://fancyapps.com/fancybox/ 我的场景是单击一个按钮,我触发“fancybox 覆盖”以显示一些细节。 默认情况下,如何在这个“fancybox 叠加层”上添加上一个和下一个按钮?

【问题讨论】:

    标签: jquery html css


    【解决方案1】:

    您可以删除visibility:隐藏; jquery.fancybox.css 中的以下样式或注释

    .fancybox-nav span {
        position: absolute;
        top: 50%;
        width: 36px;
        height: 34px;
        margin-top: -18px;
        cursor: pointer;
        z-index: 8040;
        /*visibility: hidden;*/
    }
    

    【讨论】:

      【解决方案2】:

      你可以添加css

      .fancybox-nav span {
            visibility: visible !important;
         }
      

      .fancybox-nav 可能是你喜欢的盒子导航类

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-31
        • 1970-01-01
        相关资源
        最近更新 更多