(六)前端基礎之定位,層級

一,定位 定位:將制定元素放到頁面任意位置 position :static(默認值),沒有定位,      1)元素出現在正常文檔流中(忽略top,left,right,bottom,z-index聲明)      2)當position非static時可以通過top ,left,right,bottom 四個屬性來設置元素的偏移量,   :relative(相對定位),       1)當只設
相關文章
相關標籤/搜索