z-index实际上是生效的,不过因为background-color默认是透明的,所以看上去像是没有生效
z-index看起来没生效,因为没有设置background-color
background-color默认值是transparent;即透明的
增加背景色或者修改文本颜色就可以了
- background-color background z-index index colorbackground-color background z-index index background-color color background-color background css lt gt background-color xdebug-error background-color容器background color z-index z-indexing z-index问题index javascript z-index canvas index z-indexing indexing geometry案例