P粉9577231242023-08-15 00:39:58
The reason is that since all elements are set using position:absolute
, the content div overlaps the header.
This results in the header being hidden when interacting. So when we click, the click event is actually fired on the content, not the button (see below).
We can take the following methods: