HTML/CSS: Make a div “invisible” to clicks?

后端 未结 5 1066
清歌不尽
清歌不尽 2020-11-28 06:37

For various reasons, I need to put a (mostly) transparent

over some text. However, this means that the text can\'t be clicked (eg, to click links or
5条回答
  •  旧时难觅i
    2020-11-28 07:12

    It can be done by refiring the event after you temporarily hide the overlay.

    See the first answer to this question: HTML "overlay" which allows clicks to fall through to elements behind it

提交回复
热议问题