We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1. 脱离文档流 不再保留原来的位置 形成高度塌陷 2. 具有行内块的特性(行内元素、块级元素) 3. 一行内显示并且元素顶部对齐 4. 父级元素装不下这些浮动盒子 多出的盒子另起一行对齐
flex-direction: x 轴(row) y 轴(column) justify-content:控制子元素位置 1. space-between 先两边贴边 再平分剩余空间 2. center 在主轴居中对齐 (x 轴水平居中) flex-wrap : wrap 换行 nowrap 不换行 侧轴 align-items: center 挤在一起居中(垂直居中) 单行有效 align-content : 多行有效(换行多行)
position: left right bottom top 定位 = 定位模式 + 边偏移
1、相对于最近的一层父级定位元素;没有一个祖先元素设置定位,那么参照物是body层 2、脱离文档流 不占有原有位置
The text was updated successfully, but these errors were encountered:
No branches or pull requests
浮动
BFC(块级格式化上下文)
flex 布局(弹性布局)
定位
The text was updated successfully, but these errors were encountered: