test.wxss 1.9 KB
page{
  font-size: var(--fontSize26);
  line-height: var(--fontSize60);
  color: #222;
  height: 100%;
  width: 100%;
}
.table{
  display: block;
  position: relative;
  overflow: scroll;
  width: 100%;
  height: 100%;
}
.sticky-box{
}
.table__head{
  height: var(--fontSize96);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
  height: var(--fontSize88);
  font-size: var(--fontSize24);
  line-height: var(--fontSize88);
  color: #aaabbd;
  background-color: #f8f8f8;
  border-bottom: var(--fontSize2) solid #ecf1f8;
  background-color: #fff;
  white-space: nowrap;
  display: flex;
}
.table__head__td{
  width: var(--fontSize200);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #fff;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
.table__head__td:nth-child(1) {
  padding-left: var(--fontSize24);
  width: var(--fontSize260);
  margin-right: var(--fontSize40);
  position: sticky;
  z-index: 2;
  left: 0;
}
.table__head__td__text{
  display: inline;
}
.table__row{
  position: relative;
  height: var(--fontSize96);
  white-space: nowrap;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: var(--fontSize2) solid #ecf1f8;
}
.table__row__td{
  overflow: scroll;
  white-space: nowrap;
  width: var(--fontSize200);
  display: inline-block;
  background-color: #fff;
  box-sizing: border-box;
  font-size: var(--fontSize26);
  line-height: var(--fontSize96);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
}
.table__row__td:nth-child(1) {
  margin-right: var(--fontSize40);
  padding-left: var(--fontSize24);
  width: var(--fontSize260);
  position: sticky;
  z-index: 3;
  left: 0;
}