Overlay on top of tbody

前端 未结 3 1981
后悔当初
后悔当初 2021-01-24 04:26

I am trying to create a loading overlay on top of tbody (and only tbody). My current solution is to add tr as the last element of tbody and set

3条回答
  •  无人共我
    2021-01-24 04:58

    you have to remove the position relative on tbody and out it on table instead.

    table {
      width: 100%;
      position: relative;
    }
    
    .overlay {
      position: absolute;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(200, 200, 200, 0.7);
    }
    Label
    Data
    Data
    My overlay

提交回复
热议问题