Click through div to underlying elements

后端 未结 16 2069
逝去的感伤
逝去的感伤 2020-11-21 06:19

I have a div that has background:transparent, along with border. Underneath this div, I have more elements.

Curre

16条回答
  •  名媛妹妹
    2020-11-21 06:31

    An easier way would be to inline the transparent background image using Data URIs as follows:

    .click-through {
        pointer-events: none;
        background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
    }
    

提交回复
热议问题