Why can’t child elements with z-index attribute higher than the parent element trigger in the click event?

  node.js, question

This is the case. I added a click event to the child element. the parent element is div with absolutely positioned z-index less than the child element, but the child element cannot be triggered after clicking

Is position set?

The z-index attribute can only be applied to elements with a position attribute of relative, absolute, or fixed