FancyBox图像不是全高。我想删除顶部空间&图片下方的拇指列表空间

时间:2015-08-06 03:32:23

标签: fancybox-2

我正在使用fancybox 2.它的美丽,但我需要通过浏览器显示画廊自动尺寸最大高度:

屏幕截图:http://nimb.ws/9sqJ6m

此HTML(我使用1600x900屏幕,视口1600x785)

<div class="fancybox-inner" style="overflow: visible; width: 690px; height: 690px;"><img class="fancybox-image" src="http://redboxstudio.vn/wp-content/fancygallery/1/1/IPG_Streetview-Custom.jpg" alt=""></div>

此文件:http://redboxstudio.vn/wp-content/plugins/radykal-fancy-gallery/js/jquery.fancygallery.min.js?ver=2.3.3

        getViewport: function() {
        var a = b.current && b.current.locked || !1,
            d = {
                x: n.scrollLeft(),
                y: n.scrollTop()
            };
        a ? (d.w = a[0].clientWidth, d.h = a[0].clientHeight) : (d.w = s && r.innerWidth ? r.innerWidth : n.width(), d.h = innerHeight ? r.innerHeight : n.height());
        return d
    },

1 个答案:

答案 0 :(得分:0)

全部谢谢! 我必须解决这个问题 发现:

            y = l(x[1] + x[3]),
            r = l(x[0] + x[2]),

替换为(视口的全高):

            y = l(x[1] + x[3]),
            r = l(x[3]),

查找

                c = {
                position: "absolute",
                top: c[0],
                left: c[3]
            };

替换(更改顶部空间):

                c = {
                position: "absolute",
                top: c[3],
                left: c[3]
            };