admin 发表于 2026-11-17 19:26:15

uniapp使用flex实现上下两端对齐的

代码:

.container {
display: flex;
flex-direction: column;/* 垂直方向,上下两端对齐 */
justify-content: space-between;
height: 400px;         /* 父容器必须有明确高度 */
}

页: [1]
查看完整版本: uniapp使用flex实现上下两端对齐的