How to put a static div on top of an absolute position div?

前端 未结 6 1851
误落风尘
误落风尘 2020-12-29 18:49

I am building a small web application. I have two divs. One is absolute and the other is static. I am trying to position my static div on top of my absolute one, so that it

6条回答
  •  清酒与你
    2020-12-29 19:33

    You can apply a negative z-index to the other elements placing them behind the static div. This can be applied directly to the other elements or you can use

    *:not(connectedObjects){
        z-index:-1000000000000000000000000000;
      }
    

    But this does not work in internet explorer

提交回复
热议问题