Passing mouse clicks through an overlaying element

前端 未结 4 699
别跟我提以往
别跟我提以往 2020-11-29 04:33

Is it possible to pass mouse clicks through an overlaying element:

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 04:47

    This can be solved using CSS:

    div { pointer-events:none; }
    

    Supported by IE 11+, Chrome, Firefox, Safari and Opera.

    More details: https://developer.mozilla.org/en-US/docs/CSS/pointer-events

提交回复
热议问题