Title: CSS-Only Lightbox
Author: dan-jones
Published: <strong>2016 年 10 月 11 日</strong>
Last modified: 2016 年 10 月 11 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/css-only-lightbox.svg)

# CSS-Only Lightbox

 由 [dan-jones](https://profiles.wordpress.org/dan-jones-1/) 開發

[下載](https://downloads.wordpress.org/plugin/css-only-lightbox.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/css-only-lightbox/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/css-only-lightbox/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/css-only-lightbox/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/css-only-lightbox/#developers)

 [技術支援](https://wordpress.org/support/plugin/css-only-lightbox/)

## 外掛說明

Adds a [css_lightbox …] shortcode that generates a CSS-only lightbox for a given
image (by URL). Also includes a TinyMCE toolbar button for more easily including
the needed attributes for the shortcode.

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## 常見問題集

  How do I add a lightbox?

 1. Copy and paste the complete URL for the image you want to make a lightbox for into
    the WordPress editor
 2. Select the URL with your cursor
 3. Click the “Lightbox” button in the TinyMCE toolbar
 4. Enter the values you’re prompted for. The only one that’s required is a unique 
    ID for the image

OR

 1. Copy and paste the complete URL for the image you want to make a lightbox for into
    the WordPress editor
 2. Add the opening shortcode, [css_lightbox …] before the beginning of the URL and
    add the options you want
 3. Attributes you can use with the shortcode are:

* “id” (unique identifier for the image, required)
 * “height” (in pixels, without
including px) * “width” (in pixels, without including px) * “title” (a title for
image, displayed when it’s enlarged) * “caption” (a caption for the image, displayed
when it’s enlarged) * “alt” (alt text for the on-page image) * “icon” (‘true’ or‘
false’ – whether or not to include a small magnifying glass icon in the top-left
of the on-page image, to indicate that it can be enlarged) 1. An example using all
of the available options: [css_lightbox id=”uniqueID” height=”400″ width=”400″ title
=”A title” caption=”A caption” alt=”Some alt text” icon=”true”]Image URL[/css_lightbox]

  What features are coming?

 * The option to use other units for the image dimension, including %, em, rem, 
   vw, and vh
 * Send me suggestions in the support forum!

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈CSS-Only Lightbox〉的開發相關工作。

參與者

 *   [ dan-jones ](https://profiles.wordpress.org/dan-jones-1/)

[將〈CSS-Only Lightbox〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/css-only-lightbox)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/css-only-lightbox/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/css-only-lightbox/)，或透過 
[RSS](https://plugins.trac.wordpress.org/log/css-only-lightbox/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/css-only-lightbox/)。

## 變更記錄

#### 1.0

First version:
 * Adds shortcode * Adds TinyMCE plugin and button to make the shortcode
easier to use

## 中繼資料

 *  版本 **1.0**
 *  最後更新 **10 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.6.30**
 *  語言
 * [English (US)](https://wordpress.org/plugins/css-only-lightbox/)
 * 標籤:
 * [css](https://tw.wordpress.org/plugins/tags/css/)[lightbox](https://tw.wordpress.org/plugins/tags/lightbox/)
 *  [進階檢視](https://tw.wordpress.org/plugins/css-only-lightbox/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/css-only-lightbox/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/css-only-lightbox/reviews/)

## 參與者

 *   [ dan-jones ](https://profiles.wordpress.org/dan-jones-1/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/css-only-lightbox/)