相對定位:position:relative 特性 根據自己原有位置進行便宜 left right top bottom,原有位置依然存在。絕對定位 position absolute 特性 根據父級位置進行偏移 left right top bottom 父級必須要有定位屬性,原有位置不存在。固定定位:positon fixed 特性 根據瀏覽器窗口位置進行偏移 left right top bottom 原有位置不存在
相對定位:position:relative 特性 根據自己原有位置進行便宜 left right top bottom,原有位置依然存在。絕對定位 position absolute 特性 根據父級位置進行偏移 left right top bottom 父級必須要有定位屬性,原有位置不存在。固定定位:positon fixed 特性 根據瀏覽器窗口位置進行偏移 left right top bottom 原有位置不存在。
相對定位:position:relative 特性 根據自己原有位置進行便宜 left right top bottom,原有位置依然存在。絕對定位 position absolute 特性 根據父級位置進行偏移 left right top bottom 父級必須要有定位屬性,原有位置不存在。固定定位:positon fixed 特性 根據瀏覽器窗口位置進行便宜 left right top bottom 原有位置不存在。