Make a whole div clickable with working :active css rule in IE10

前端 未结 5 526
抹茶落季
抹茶落季 2021-01-04 00:46

I\'m designing a clickable panel for an html app which contains multiple text elements and images.

From what I understand this is generally done with a div. Somethin

5条回答
  •  不知归路
    2021-01-04 01:35

    You can use the CSS pointer-events: none; on a child element that you would like to disregard mouse events and it will bubble up appropriately to its parent.

提交回复
热议问题