align-items
时间: 2023-10-09 20:15:46 浏览: 24
`align-items` is a CSS property that controls the vertical alignment of items inside a container. It applies to all the items in the container and has the following values:
- `stretch` (default): Items are stretched to fill the container vertically.
- `center`: Items are centered vertically.
- `flex-start`: Items are aligned to the top of the container.
- `flex-end`: Items are aligned to the bottom of the container.
- `baseline`: Items are aligned to their text baseline.
This property is used in conjunction with the `display: flex` or `display: grid` property on the container element.