when div with absolute position is added cannot click on links

前端 未结 8 1374
情歌与酒
情歌与酒 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:44

    Use Google Chrome or Mozilla Firefox's Developer tools to hover over your links and divs (or select them). This way you can see what is going on, and most probably, there is another div or other object stacked on top of your links, which is preventing your from clicking them. Firefox also has a 3D option, which visualizes all this even better:

    https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/3D_view
    

提交回复
热议问题