知識(shí)要點(diǎn)梳理 1.相對(duì)定位 1.PNG 2.絕對(duì)定位 2.PNG 3.元素垂直水平居中 3.PNG 4.PNG 4.搜索框 5.PNG 百度搜索框 6.PNG 5.fixed 7.PNG 6.z-index 8.PNG 注釋:當(dāng)one設(shè)置z-index為100脓规;只要two設(shè)置的z-index超過100就覆蓋one;設(shè)置hover鼠標(biāo)移動(dòng)經(jīng)過效果柒啤,設(shè)置one的z-index超過two的,就能實(shí)現(xiàn)