【问题标题】:Navigation arrows in fancybox for pdf content用于 pdf 内容的 fancybox 中的导航箭头
【发布时间】:2012-03-09 12:11:13
【问题描述】:

我已经设置了 fancybox 以便它显示我的 pdf,但是我想要它让 fancybox 左右导航箭头跳过 pdf 幻灯片...这可能吗?

提前致谢。

$(document).ready(function() {
        $(".pdf").click(function() {
            $.fancybox({
                'width': '100%',
                'height': '110%',
                'autoScale' : true,
                'autoDimensions': false,
                'cyclic' : true,
                'showNavArrows' : true,
                'titleShow' : true,
                'scrolling' : 'yes',
                'content': '<iframe src="'+this.href+'" type="application/pdf" height="99%" width="100%"></iframe>',
                'onClosed': function() {
                    $("#fancybox-inner").empty();
                }
            });
            return false;
        });
    });

【问题讨论】:

    标签: jquery pdf fancybox


    【解决方案1】:

    我认为您不能通过 Javascript 调用浏览器 PDF 插件。

    【讨论】:

      【解决方案2】:

      只是不要为类pdf的元素添加rel属性

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-01-30
        • 2012-04-07
        • 2013-04-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多