Why z-index is not working?

前端 未结 2 1196
梦如初夏
梦如初夏 2020-12-22 07:41

I have this HTML code:

Title goes here

&
2条回答
  •  攒了一身酷
    2020-12-22 07:58

    I think you have some max height/width, so just write some CSS to #logo

    #logo {
        position: absolute;
        z-index: 1;
        width: 100px; /* your maximum in width */
        height: 100px; /* your maximum in height */
        overflow: hidden; /* just to make sure there is nothing leaking your DIV */
    }
    

提交回复
热议问题