css 绝对定位下点击事件失效(Click event failure under CSS absolute positioning)

参考链接

方法一是给想要使用点击事件的元素加z-index;

方法二是给定位absolute元素之前relative加pointer-events:none

————————

Reference link

The first method is to add Z-index to the element that wants to use the click event;

The second method is to add pointer events: none to relative before locating absolute element