正文z-index要同级比较,absolute包含块外有overflow-hiddenIP云V管理员/2022-09-29/0 阅读 09/29小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序z-index只能在position属性值为relative或absolute或fixed的元素上有效。z-index只决定同一父元素中的同级子元素的堆叠顺序。position:absolute 的包含块 外有overflow-hidden时,绝对定位元素也会被挡住