How to detect elements overlapping (overlaying) using JavaScript?

前端 未结 3 622
别跟我提以往
别跟我提以往 2020-12-06 07:44

How to detect overlap HTML elements, using JavaScript?

I have an item list (

    ). It slides up and down using JavaScript. When it slides down, de
3条回答
  •  清歌不尽
    2020-12-06 08:28

    Why not just raise the z-index of your UL to be above the div at the bottom?

    add:

    #wrap {
        z-index  : 2;
        position : relative;
    }
    

提交回复
热议问题