【问题标题】:Override settings of Fancybox覆盖 Fancybox 的设置
【发布时间】:2017-11-16 13:23:47
【问题描述】:

我是我的项目,我需要覆盖fancybox 的默认设置。缩略图 autostarttrue,如下所示。我该怎么做。

thumbs : {
            autoStart   : true,   // Display thumbnails on opening
            hideOnClose : true     // Hide thumbnail grid when closing animation starts
        },

【问题讨论】:

    标签: fancybox-3


    【解决方案1】:

    最好使用 JS 覆盖默认值:

    $.fancybox.defaults.thumbs.autoStart = true;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-29
      相关资源
      最近更新 更多