CSS:z-index属性没有作用不覆盖详解 匿名用户 5 年 ago z-index 属性只作用在 position 属性值不为static上。案例代码: position: absolute;, position: relative;, or position: fixed