z-index property not work

前端 未结 4 1522
自闭症患者
自闭症患者 2021-01-03 05:30

Hi man I have following codes, and I wont to that when I\'ll click some button fadeTo only content without #some tag
In this case fadeTo<

4条回答
  •  离开以前
    2021-01-03 05:51

    If you have 2 div like this

    ,
    and both have a absolute position you can write z-index property

    .a {
      z-index:1;
    }
    .b {
      z-index:2;
    }
    

    .a div is over .b div

提交回复
热议问题