Title: FancyBox Gallery
Author: Dougal Campbell
Published: <strong>2009 年 1 月 25 日</strong>
Last modified: 2015 年 8 月 26 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/fancybox-gallery.svg)

# FancyBox Gallery

 作者：[Dougal Campbell](https://profiles.wordpress.org/dougal/)

[下载](https://downloads.wordpress.org/plugin/fancybox-gallery.0.3.2.zip)

 * [详情](https://cn.wordpress.org/plugins/fancybox-gallery/#description)
 * [评价](https://cn.wordpress.org/plugins/fancybox-gallery/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/fancybox-gallery/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/fancybox-gallery/#developers)

 [支持](https://wordpress.org/support/plugin/fancybox-gallery/)

## 描述

FancyBox Gallery integrates the FancyBox jQuery plugin into the WordPress
 gallery
functionality. Simply use the gallery shortcode to display thumbnails in your posts
with the option to link directly to the images (not the attachment template), and
the plugin handles the rest. You get nice popups for the larger sized images, scaled
to fit in the browser window, with a nice overlay effect.

#### Features:

 * Automatically scales large images to fit in window
 * Adds a nice drop shadow under the zoomed item
 * Groups related items and adds navigation through them (uses preloading)

FancyBox jQuery features, not yet implemented in the WordPress plugin:

 * Can display images, inline and iframed content
 * Customizable through settings and CSS

### ToDo

 * Add a settings screen. Allow control of FancyBox display options.
 * Let user set their own CSS selector, instead of assuming the standard
    WordPress
   shortcode.

### Credits

The FancyBox jQuery plugin is by Janis Skarnelis, and can be found here:

http://fancy.klade.lv/

## 安装

Copy the fancybox-gallery folder and its contents to your wp-content/plugins
 directory,
then activate the plugin.

Visit the settings page to configure options.

By default, FancyBox Gallery is configured to work with image galleries
 generated
by the WordPress `[gallery link="file"]` shortcode.

## 常见问题

  Does it work with other media, like videos?

The FancyBox jQuery can work with other embedded media types. I have not
 tested
the WordPress plugin with anything other than images, though.

  There is a problem with my browser.

For example, I have heard reports that the Opera browser wants to center the
 image
on the whole document, not just in the visible viewport. Browser issues most likely
will have to be dealt with in the underlying FancyBox jQuery plugin. For these types
of problems, please visit:

    ```
    http://fancy.klade.lv/
    ```

## 评价

![](https://secure.gravatar.com/avatar/46f7b40dfcdb119108ec69f887eae9aa24fcbd380849af058fbf489ba17b4090?
s=60&d=retro&r=g)

### 󠀁[Works Well… needs lightbox features](https://wordpress.org/support/topic/works-well-needs-lightbox-features/)󠁿

 [thorshammer](https://profiles.wordpress.org/thorshammer/) 2016 年 9 月 3 日

Thanks for the reliable plugin! Would be much more useful if the lightbox included
the captions (play controls, even better). Without that, I’m still looking…

![](https://secure.gravatar.com/avatar/1e5eaab8efcc216653183bb2abd87ebf30956a1483be4ee5b040a9ca509de80a?
s=60&d=retro&r=g)

### 󠀁[Its ok](https://wordpress.org/support/topic/its-ok-37/)󠁿

 [alzuma](https://profiles.wordpress.org/alzuma/) 2016 年 9 月 3 日

It does its job – so its ok. I’m using 1.9.1 – had errors. Add this: jQuery.browser
= {}; (function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if(
navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.
browser.version = RegExp.$1; } })(); to \plugins\fancybox-gallery\fancybox\jquery.
fancybox-1.2.1.js and it will work.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/fancybox-gallery/reviews/)

## 贡献者及开发者

「FancyBox Gallery」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Dougal Campbell ](https://profiles.wordpress.org/dougal/)

[帮助将「FancyBox Gallery」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/fancybox-gallery)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/fancybox-gallery/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/fancybox-gallery/)，或通过[RSS](https://plugins.trac.wordpress.org/log/fancybox-gallery/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/fancybox-gallery/)。

## 更新日志

#### 0.3.2 2010-01-10

 * Tested up to WordPress 3.0-alpha

#### 0.3.1 2009-06-11

 * Fixed path to easing plugin.

#### 0.3 2009-06-11

 * Upgraded to fancybox 1.2.1
 * Due to new version of fancybox, which requires jQuery version 1.3.2,
    the plugin
   now requires WordPress 2.8 (or at least the newer jQuery)
 * Now supports next/previous image navigation within gallery images of
    a post.

#### 0.2 2009-01-26

 * Override table styles for image captions so that it works better with
    more themes.

#### 0.1 2009-01-25

 * Initial release. No options, yet. Only works if you use the gallery
    shortcode
   like so: `[gallery link="file"]`

## 额外信息

 *  版本 **0.3.2**
 *  最后更新：**11 年前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/fancybox-gallery/)
 * 标签
 * [fancybox](https://cn.wordpress.org/plugins/tags/fancybox/)[galleries](https://cn.wordpress.org/plugins/tags/galleries/)
   [gallery](https://cn.wordpress.org/plugins/tags/gallery/)[lightbox](https://cn.wordpress.org/plugins/tags/lightbox/)
   [photos](https://cn.wordpress.org/plugins/tags/photos/)
 *  [高级视图](https://cn.wordpress.org/plugins/fancybox-gallery/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/fancybox-gallery/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/fancybox-gallery/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/fancybox-gallery/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/fancybox-gallery/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/fancybox-gallery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/fancybox-gallery/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/fancybox-gallery/reviews/)

## 贡献者

 *   [ Dougal Campbell ](https://profiles.wordpress.org/dougal/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/fancybox-gallery/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://dougal.gunters.org/donate)