when div with absolute position is added cannot click on links

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

    you have a problem with z-index..

    it is covering the menu elements:

     #left_border {
        background-image: url(http://tax.allfaces.lv/templates/tax/images/ena.png);
        background-position: 0 0;
        background-repeat: no-repeat;
        width: 1094px;
        background-size: 100% auto;
        position: absolute;
        height: 850px;
        left: -51px;
        top: 0px;
        z-index:-111;
    }
    

    http://jsfiddle.net/Dq6F4/2/

提交回复
热议问题