How can I display my element(`class=“line”`) over all other elements/div?

后端 未结 3 1369
孤城傲影
孤城傲影 2020-12-22 09:43

How can I display my element(class=\"line\") over all other elements/div?

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-22 10:22

    You need to set z-index property of the element. ie

    .line{
     position:absolute;
     z-index:100;
    top : 0;
    left: 0
    }
    

提交回复
热议问题