Fancybox导航箭头没有显示出来 [英] Fancybox navigation arrows not showing up

查看:117
本文介绍了Fancybox导航箭头没有显示出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是jquery的新手。所有动画,如过渡和速度都很好。但是,'showNavArrows'和'cyclic'不起作用。
这是代码:

I am a newbie to jquery. All animations like transitions and speed is working fine. However, 'showNavArrows' and 'cyclic' isn't working. Here's the code:

$(document).ready(function() {
    $("a#single_image").fancybox({
        'transitionIn'  :   'elastic',
        'transitionOut' :   'elastic',
        'speedIn'   :   600, 
        'speedOut'  :   200, 
        'overlayShow'   :   false,
        'cyclic'    :   true,
        'showNavArrows' :   true
    })
});

以下是可用选项:
http://fancybox.net/api

推荐答案

循环和导航如果图库中有一组元素,则仅显示箭头,这意味着图库的元素应具有相同的 rel 属性查看此帖子以获取示例

Cyclic and navigation arrows only will show up if you have a group of elements in a gallery, which means that the elements of the gallery should have the same rel attribute check this post for examples

这篇关于Fancybox导航箭头没有显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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