absolute,fixed,relative,static,inherit

absolute:相对于static定位意外的第一个父元素进行定位。元素位置通过top,left,right,bottom属性进行规定

fixed:相对于浏览器窗口进行定位。同有top,bottom,left,right

relative:相对于其正常位置进行定位。即left:20会向元素的left位置添加20像素

static:默认值,没有定位,按标准文档流,忽略top,bottom,left,right或者z—index

inherit:从父元素基础position属性的值

原文地址:https://www.cnblogs.com/zawjdbb/p/6617231.html