如何控制Fancybox画廊的流向? [英] How do I control the direction of flow for Fancybox Galleries?

查看:73
本文介绍了如何控制Fancybox画廊的流向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Fancybox 2.0在这里工作: http://discovermonroeville.com/photo-gallery

我唯一的问题-如何在文档中找不到答案我使图库图像从左到右流动,而不是从上到下流动吗?

代码:

<script type="text/javascript">
    $(document).ready(function() {
        $('.photo-gallery').fancybox(); 
        });
</script>

解决方案

frmz,我调查了您的代码,发现在您下面的fancybox js文件中缺少选项:

direction : { next : 'left', prev : 'right' }

再次下载fancybox js文件.

I have Fancybox 2.0 working here: http://discovermonroeville.com/photo-gallery

My only question - which I was unable to find an answer to in the documentation is how do I get the gallery images to flow from left to right instead of top to bottom?

The code:

<script type="text/javascript">
    $(document).ready(function() {
        $('.photo-gallery').fancybox(); 
        });
</script>

解决方案

frmz, i investigate you code and found that in you fancybox js file below option is missing:

direction : { next : 'left', prev : 'right' }

Download the fancybox js file once again.

这篇关于如何控制Fancybox画廊的流向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆