0
点赞
收藏
分享

微信扫一扫

HTTP的Keep-Alive是什么?TCP 的 Keepalive 和 HTTP 的 Keep-Alive 是一个东西吗?

钎探穗 2024-07-24 阅读 22

问题:当 el-table 组件固定了表头和列时,列表数据触发滚动条,列表滚动到底,会有错位。

原因分析:因为固定列和固定表头产生的滚动条宽度不一致,导致有轻微误差。

解决:自定义滚动条高度,将滚动条高度设置小一点且一致。

/deep/::-webkit-scrollbar {

  width: 10px !important;

  height: 10px !important;

  background-color: #8487879e;

}

/deep/.el-table__fixed::before,

.el-table__fixed-right::before {

  content: "";

  position: absolute;

  left: 0;

  bottom: 0;

  width: 100%;

  height: 1px;

  background-color: unset;

  z-index: 4;

}
举报

相关推荐

0 条评论