Files
ClassContent/历届学生/front-end-team-11/每天上课/2023-04-26/笔记.txt
2024-09-27 02:06:13 +08:00

27 lines
698 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

pc 移动端
display: inline-block
float: left: right;
flex布局 + rem尺寸
flex 13 个css属性
display: flex 开启弹性盒子
用户父元素上6个
flex-direction 设置对齐方向 注意 align-items 和 justify-content 作用交换
flex-wrap 自动换行
flex-flow
justify-content 水平对齐
align-items 垂直对齐(单行的时候)
align-content 多行的时候设置垂直对齐
用户子元素上6个
order 数值越小越靠前
flex-grow 元素的放大比例默认0
flex-shrink 0 让元素不缩放默认1 缩放)
flex-basis
flex flex: 1; 是 flex-grow 平替
align-self 让元素不遵守 父元素上的 align-items