列表中的单个项目。
块关系
属性
通过 attributes 属性在 block.json 中定义。
支持功能
通过 supports 属性在 block.json 中定义。
anchor:truehtml:falseclassName:falsesplitting:truebackground:backgroundImage:truebackgroundSize:truegradients:true
color:gradients:truelink:truebackground:true
spacing:margin:truepadding:true
shadow:truetypography:fontSize:truelineHeight:true
interactivity:clientNavigation:true
CSS 选择器
通过 selectors 属性在 block.json 中定义。
- 根:
.wp-block-list > li - 边框:
.wp-block-list:not(.wp-block-list .wp-block-list) > li - 阴影:
.wp-block-list:not(.wp-block-list .wp-block-list) > li
块标记
这是一个 静态块。标记直接保存在文章内容中。
<!-- wp:list-item -->
<li>Text & Headings</li>
<!-- /wp:list-item -->
来源
- block.json (参考)
- 源代码目录 — 浏览
edit和save源文件,index.php等。