position:fixed根据浏览器窗口位置进行偏移(left、right、top、bottom),原有位置不存在; position:relative根据自己原有位置进行偏移(left right top bottom ),原有位置依然存在; position:adsolute根据父级位置进行偏移(left right top bottom ),父级必须要有定位属性,原有位置不存在。
position:fixed根据浏览器窗口位置进行偏移(left、right、top、bottom),原有位置不存在; position:relative根据自己原有位置进行偏移(left right top bottom ),原有位置依然存在; position:adsolute根据父级位置进行偏移(left right top bottom ),父级必须要有定位属性,原有位置不存在。