Title: Live CSS Preview
Author: Dojo Digital
Published: <strong>2012 年 7 月 7 日</strong>
Last modified: 2026 年 4 月 6 日

---

搜索插件

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

# Live CSS Preview

 作者：[Dojo Digital](https://profiles.wordpress.org/dojodigital/)

[下载](https://downloads.wordpress.org/plugin/live-css-preview.2.2.3.zip)

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

 [支持](https://wordpress.org/support/plugin/live-css-preview/)

## 描述

This plugin adds a textarea to the Customize page that allows theme editors to write,
preview, and implement CSS code in real time.
 It also includes a frontend CSS editor
window with live preview capability.

## 安装

 1. Upload the `live-css-preview` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

### Will the CSS be applied to my live site if I hit “Save & Publish”?

Yes. Your changes are saved to the database and applied immediately to the frontend.

### Will the Live CSS Preview allow me to write @media queries?

Absolutely — this is one of its primary features.

### My CSS doesn’t seem to apply. How can I override the theme’s CSS?

The plugin adds a `livecss` class to the `<body>` element.
 Use it to increase specificity
when needed:

    ```
    body.livecss { background-color: red; }
    ```

### 2.1.6

whitespace error removed which may conflict with other plugins

### 2.1.7

Hardening security (sanitization + escaping)
 Cleaning up uninstall logic Stabilizing
CSS injection / preview behavior

### 2.2.2

New behavior, complete rework.
 Front-end Live CSS editor now: -Loads CSS directly
from Appearance  Customize  Additional CSS -Saves directly back to Additional CSS-
Applies changes instantly on the front end

Migration
 -Automatically migrates existing Live CSS data into Additional CSS on
update -Ensures no CSS is lost during upgrade

Improvements
 -Added Minify, Format, and Reset tools in the editor -Improved compatibility
with themes and plugins (including complex layouts) -Hardened CSS and JS to prevent
conflicts (Bootstrap, Toolset, etc.) -Ensures editor appears above all site elements(
z-index handling)

Performance
 -CSS now outputs only once using native WordPress methods -Reduced 
duplicate rendering and improved front-end efficiency

Cleanup
 -Removed redundant Customizer editor (uses native Additional CSS instead)-
Simplified architecture for long-term stability

### 2.2.3

-Fixed ACE autocomplete suggestions stacking below the Live CSS panel (z-index)
-
Fixed Format tool inserting a space after colons in selectors (e.g. a:hover was 
changed to a: hover); spacing is now applied only to property/value lines -Removed
unused legacy Customizer control PHP file -Removed duplicate root js/ and css/ folders(
only assets/js and assets/css are loaded)

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Dojo Digital ](https://profiles.wordpress.org/dojodigital/)

[帮助将「Live CSS Preview」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/live-css-preview)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **2.2.3**
 *  最后更新：**2 月前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/live-css-preview/)
 * 标签
 * [css](https://cn.wordpress.org/plugins/tags/css/)[customizer](https://cn.wordpress.org/plugins/tags/customizer/)
   [editor](https://cn.wordpress.org/plugins/tags/editor/)
 *  [高级视图](https://cn.wordpress.org/plugins/live-css-preview/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Dojo Digital ](https://profiles.wordpress.org/dojodigital/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/live-css-preview/)