Flex 类
Flex 类用于实现弹性布局
flex: 使用弹性布局,开启弹性布局,另外一个效果是使内部的元素变成左右布局flex-row,flex-col: 设置主轴为行或列justify-center: 在主轴(水平轴)上居中其他的对齐方式:
justify-start,justify-center,justify-end,justify-between,justify-arounditems-center:在交叉轴(垂直轴)上具体其他的对齐方式:
items-start,items-center,items-end,items-stretch
目前felx也可以使用gap来设置元素的间距,如gap-2