一、简介
1、Positioned Layout Module
提供与元素定位和层叠相关功能它是核心模块
.box{
position:relative;
}
- 盒子模型的类型和尺寸
- 布局模型
- 元素之间的关系
- 视口大小、图像大小等其他相关方面
2、document tree
![95234d3ff4cdcf1901a23198861e7868.png](https://i-blog.csdnimg.cn/blog_migrate/82c7f2b85564c800a87bd5252fcdb827.png)
3、定位模型
- static自然模型
- relative相对定位模型
- absolute绝对定位模型
- fixed固定定位模型
- sticky磁贴定位模型
二、position属性
![6781ba6152bbc4844ae91904c92e0fe8.png](https://i-blog.csdnimg.cn/blog_migrate/c84bfa90c60bd3a347e3868534a070f0.jpeg)
1、static:静态定位/常规定位/自然定位
作用:使元素定位于常规/自然流中(块、行垂直排列下去、行内水平从左到右)
特点&#x