Why z-index is not working for div?

后端 未结 4 1869
我在风中等你
我在风中等你 2021-02-05 08:01

I am trying to get my footer to show on top of the footer background, but z-index seems not to be working. Does anyone see what is wrong with it? http://jsfiddle.net/f2ySC/

4条回答
  •  一向
    一向 (楼主)
    2021-02-05 08:21

    using negative margin is not a good practice. z-index:-1; works it just display the content on the background of another div :)

提交回复
热议问题