ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] ## Align Items 用于控制 Flex 和网格项如何沿着容器的横轴定位的功能类。 | Class | Properties | | --- | --- | | items-start | align-items: flex-start; | | items-end | align-items: flex-end; | | items-center | align-items: center; | | items-baseline | align-items: baseline; | | items-stretch | align-items: stretch; | ### 实例 水平垂直居中 ``` <div class="flex items-center justify-center w-16 h-16 bg-red-200"> 123 </div> ```