Pass click events through a DOM layer

后端 未结 4 1989
轻奢々
轻奢々 2021-01-14 09:03

I have a div that is positioned to the bottom of the page and sits above everything on the page. I include a shadow to remove the harsh cutoff of the content below. However,

4条回答
  •  生来不讨喜
    2021-01-14 09:16

    Try setting the pointer-events to none; for the overlaying div. See this page for an example: http://css-tricks.com/almanac/properties/p/pointer-events/

提交回复
热议问题