Click through div to underlying elements

后端 未结 16 2363
逝去的感伤
逝去的感伤 2020-11-21 06:19

I have a div that has background:transparent, along with border. Underneath this div, I have more elements.

Curre

16条回答
  •  没有蜡笔的小新
    2020-11-21 06:53

    I think the event.stopPropagation(); should be mentioned here as well. Add this to the Click function of your button.

    Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.

提交回复
热议问题