Order of z-index elements on bxslider

前端 未结 3 1816
走了就别回头了
走了就别回头了 2021-01-25 08:59

I need to order the contents of a bxslider with a no-child element. between the image and the text over the top.

e.g

3条回答
  •  温柔的废话
    2021-01-25 09:13

    I would try something along the lines of:

    li img{
    position:relative;
    z-index:-99999;
    }
    
    li span{
    position:relative;
    z-index:99999;
    }
    
    .under-text-over-image{
    position:relative;
    z-index:11111;
    }
    

    something along these lines, usually works for me when using z-index.

    Hope this helps you.

提交回复
热议问题