知识要点梳理 1.相对定位 1.PNG 2.绝对定位 2.PNG 3.元素垂直水平居中 3.PNG 4.PNG 4.搜索框 5.PNG 百度搜索框 6.PNG 5.fixed 7.PNG 6.z-index 8.PNG 注释:当one设置z-index为100;只要two设置的z-index超过100就覆盖one;设置hover鼠标移动经过效果,设置one的z-index超过two的,就能实现