when div with absolute position is added cannot click on links

前端 未结 8 1439
情歌与酒
情歌与酒 2021-01-01 10:37

I have menu on a page and div that is absolute positioned. The problem is that when this div is on a page, then I cannot click on any links in menu items.

When I re

8条回答
  •  灰色年华
    2021-01-01 10:39

    CSS - to unblock clicking add to #left_border class following statement:

    pointer-events: none 
    

    (it is cross-browser solution including >= IE11)

    Here is source of this solution with more informations. I tested it on chrome, firefox and safari (macOs and iOS) and works :)

提交回复
热议问题