IE z-index relative/absolute bug in list

后端 未结 8 1881
迷失自我
迷失自我 2020-12-31 08:12

I have the following navigation where .topNav has position:relative and subnav has position:absolute. I cant get the sublist to appear over the main list due to z-index prob

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 08:59

    Solution: assign z-index in decreasing order

    This has some more text in it. This also has a background. This should obscure the second block of text since it has a higher z-index.
    This has some text in it. This has some text in it. This has some text in it. This has some text in it. This has some text in it.
    This is the second div. You should not be seeing this in front of the grey box. This has some text in it. This has some text in it. This has some text in it. This has some text in it. This has some text in it. This second box should be obscured by the grey box.

提交回复
热议问题