Spacer


目录


Add white space between blocks and customize its height.

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
height string "100px" —
width string — —

Supports

Defined via the supports property in block.json.

Context

Defined via the usesContext and providesContext properties in block.json.

Uses context:

Block Markup

This is a static block. The markup is saved directly in the post content.

<!-- wp:spacer {"height":"100px"} -->
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

Source


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:30:12 UTC
由 壳壳虫 更新于 2026-10-31 18:30:13 UTC