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

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

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

3条回答
  •  囚心锁ツ
    2020-12-22 10:17

    we can give in following ways:

    we can add class="line" to position property and mention Z-index property (layer concept)

    .line
    {
        position:absolute;
        z-index:2
    }
    .otherclass
    {
        position:absolute;
        z-index:1;
    }
    

    we should specify both in Position property

提交回复
热议问题