How to pass click events from one div to another?

前端 未结 3 719
攒了一身酷
攒了一身酷 2021-01-05 09:43

I need to find a way to pass click events from a div on top to the div below it (and ignore the clicks on the higher div). There is a known way of simulating the cli

3条回答
  •  萌比男神i
    2021-01-05 09:59

    Do you need the div structure for render purposes ? - I am thinking you could set your first div to display inline, then float the other divs inside it so the outer div would then have 0 height and you could then click on each individual div inside it.

提交回复
热议问题