Title: Autogrid
Author: Andreslav
Published: <strong>2024 年 2 月 10 日</strong>
Last modified: 2024 年 10 月 20 日

---

搜索插件

![](https://ps.w.org/autogrid/assets/banner-772x250.jpg?rev=3052333)

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

![](https://ps.w.org/autogrid/assets/icon.svg?rev=3034037)

# Autogrid

 作者：[Andreslav](https://profiles.wordpress.org/andreslav/)

[下载](https://downloads.wordpress.org/plugin/autogrid.2.0.7.zip)

[实时预览](https://cn.wordpress.org/plugins/autogrid/?preview=1)

 * [详情](https://cn.wordpress.org/plugins/autogrid/#description)
 * [评价](https://cn.wordpress.org/plugins/autogrid/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/autogrid/#developers)

 [支持](https://wordpress.org/support/plugin/autogrid/)

## 描述

Autogrid is a block for the WordPress block editor that allows you to create adaptive
columns. The elements inside it are automatically distributed into columns, filling
the available space.

The order of customization

 1. Set the maximum number of columns and their minimum width, after reaching which
    the cells will be redistributed.
 2. Specify the size of spacing between cells and their padding. These parameters can
    be configured adaptively, for example by setting min. the size of the container
    when the value should be applied.
 3. If necessary, set the width of certain cells by specifying the number of columns
    they should occupy. You can specify the minimum and maximum number of columns to
    be displayed when the value should be applied.
 4. Done! Test.

## 屏幕截图

[⌊Example of Autogrid block⌉⌊Example of Autogrid block⌉[

Example of Autogrid block

[⌊Autogrid Block Settings⌉⌊Autogrid Block Settings⌉[

Autogrid Block Settings

[⌊Autogrid block cell Settings⌉⌊Autogrid block cell Settings⌉[

Autogrid block cell Settings

[⌊Autogrid block cell Settings⌉⌊Autogrid block cell Settings⌉[

Autogrid block cell Settings

[⌊How the Autogrid block looks on the site⌉⌊How the Autogrid block looks on the 
site⌉[

How the Autogrid block looks on the site

## 区块

该插件提供了 2 个区块.

 *   Autogrid Autogrid Block. The elements inside this block are automatically distributed
   in columns, filling the available space.
 *   Autogrid Item Autogrid Block Item.

## 常见问题

### What browsers are supported?

The grid works well in modern browsers: Chrome 79+, Firefox 76+, Edge 79+, Safari
16+.

Adaptability starts working only with: Chrome 106+, Firefox 110+, Edge 106+, Safari
16+.

The information is obtained based on a comparison of the support of the CSS features
used: [CSS Grid](https://caniuse.com/css-grid), [CSS math function min()](https://caniuse.com/?search=min()),
[CSS function repeat()](https://caniuse.com/?search=repeat()), [CSS Container Queries](https://caniuse.com/css-container-queries).

### Are the adaptability settings working strangely?

The Min and Max values in the adaptivity settings “Spacing between cells” and “Padding
of cells” are set in px and indicate the width of the Autogrid container, not the
width of the viewport.

The Min and Max values in the adaptability settings of the “Cell Size” are set in
integers and literally indicate the number of columns displayed when the rule should
be applied.

### Where can I see the source code?

You can check out the source files on [Github](https://github.com/Andreslav/autogrid).

### Where can I test the plugin without installing it on my site?

The plugin can be tried on a free dummy site from TasteWP. To create a fictitious
website with the Autogrid plug-in installed, follow the link: [https://tastewp.org/plugins/autogrid](https://tastewp.org/plugins/autogrid)

## 评价

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

### 󠀁[I only have 2 words for this !](https://wordpress.org/support/topic/i-only-have-2-words-for-this/)󠁿

 [nick6352683](https://profiles.wordpress.org/nick6352683/) 2024 年 2 月 11 日 1
回复

I only tested this plugin for about 10 minutes, but that was enough for me to come
here and give it my 2 word review:Pure Genius !!! Ok, some more details: Before 
this plugin in order for me to achieve some complex multi “row” layouts, with different“
cell” sizes, I have to setup multiple Columns blocks, and group them together. Even
though with the Columns setup, you have more precise control for the column sizes,
this plugin simplifies things a lot. Also, considering that this plugin is only 
75kb in size, a rare sight nowadays, I am extremely happy and impressed with this–
so far… If any issues arise, I will report back. Thank you for this plugin !

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/autogrid/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Andreslav ](https://profiles.wordpress.org/andreslav/)

「Autogrid」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/autogrid/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.7

 * Added possibility to set color for all autogrid child items at once.

#### 2.0.6

 * Fixed a bug in Safari.

#### 2.0.5

 * Fixed PHP warning and formatted .php

#### 2.0.3

 * Fixed an issue where increasing the cell spacing increases the outer margins 
   as well.
 * Updated the supported settings (supports).
 * Autogrid is now displayed correctly inside the “Group” blocks.

## 额外信息

 *  版本 **2.0.7**
 *  最后更新：**2 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.4 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/autogrid/) 和 [Russian](https://ru.wordpress.org/plugins/autogrid/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/autogrid)
 * 标签
 * [auto-fill](https://cn.wordpress.org/plugins/tags/auto-fill/)[block](https://cn.wordpress.org/plugins/tags/block/)
   [columns](https://cn.wordpress.org/plugins/tags/columns/)[grid](https://cn.wordpress.org/plugins/tags/grid/)
   [layout](https://cn.wordpress.org/plugins/tags/layout/)
 *  [高级视图](https://cn.wordpress.org/plugins/autogrid/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Andreslav ](https://profiles.wordpress.org/andreslav/)

## 支持

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

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