Title: Table Auto-Layout
Author: Svance23
Published: <strong>2014 年 3 月 29 日</strong>
Last modified: 2014 年 3 月 29 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/table-auto-layout.svg)

# Table Auto-Layout

 作者：[Svance23](https://profiles.wordpress.org/svance23/)

[下载](https://downloads.wordpress.org/plugin/table-auto-layout.1.0.00.zip)

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

 [支持](https://wordpress.org/support/plugin/table-auto-layout/)

## 描述

Table Auto-Layout allows site owners to automatically cause a table (or a list of
selected tables) to be regenerated to best fit its container when the window is 
resized. This plugin uses a jQuery plugin to add a window resize event handler which
selects a list of tables, measures their parent containers and replaces the existing
tbody with a new set of rows and columns where the number of cells per row is determined
by the parent container width divided by the desired cell (column) width.

Note: Because new rows may be generated and old rows may be combined by this process,
the attributes of tags are lost.
 A done function can be specified that can be used
to repopulate row attributes (or whatever) on completion.

The last row of a table may either be filled out with blank cells or left partially
filled based on a flag. This flag also serves as the class given added blank cells.

#### Donate

[If you like this plugin please consider donating](http://greenlightdevelopment.com/table-auto-layout.php#donate)

#### Features

 * Works on pages and posts
 * NO settings or configurations to deal with
 * All features implemented as shortcode attributes
 * Helps with responsive design.

### Options

Shortcode attributes:

‘container_id’ If not specified the plugin uses the table’s parent container as 
the layout width,

‘selector’ Default: “#the_table”

‘cell_width’ Default: 100,

‘done_fxn’ Default: NULL,

‘blank_cell_class’ Default: ”. If specified the software will fill out empty rows
with cells of the spec’d class. Mark any empty cells of the input table with this
class for proper operation. Cells that are added will also get the class name “added”
as well as the spec’d class.

### Issues

If you have any issues please post something here:
 [Greenlight Contact](http://greenlightdevelopment.com/contact.php)

### Note

Table Auto-Layout should work with older versions of WordPress as well but was not
tested with anything older than 3.8.1

## 安装

 1. Upload ‘table_auto_layout.zip’ to the ‘/wp-content/plugins/’ directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Add the shortcode to the pages/posts that you want to affect. Shortcodes should
    look something like this:

[table-auto-layout
 container_id=”#table_container” selector=”.link_table” blank_cell_class
=”blank_dir” cell_width=”144″ done_fxn=”test_fxn”]

 1. Done!

## 常见问题

none

## 评价

此插件暂无评价。

## 贡献者及开发者

「Table Auto-Layout」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Svance23 ](https://profiles.wordpress.org/svance23/)

[帮助将「Table Auto-Layout」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/table-auto-layout)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.00

 * Initial release

## 额外信息

 *  版本 **1.0**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.8 或更高版本 **
 *  已测试的最高版本为 **3.7.41**
 *  语言
 * [English (US)](https://wordpress.org/plugins/table-auto-layout/)
 * 标签
 * [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/table-auto-layout/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/table-auto-layout/reviews/#new-post)

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

## 贡献者

 *   [ Svance23 ](https://profiles.wordpress.org/svance23/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/table-auto-layout/)

## 捐助

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

 [ 捐助此插件 ](http://greenlightdevelopment.com/table-auto-layout.php#donate)