ソースを参照

【素材列表组件】修复内容区域滚动后覆盖表头区域的问题

任一存 4 年 前
コミット
08141c939f
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/components/table/style.less

+ 2 - 1
src/components/table/style.less

@@ -17,7 +17,8 @@
     background-color: #F5F7FA;
     background-color: #F5F7FA;
     color: #646566;
     color: #646566;
     line-height: 19px;
     line-height: 19px;
-
+    position: relative; // 为了设置z-index
+    z-index: 1; // 为了避免.t-con向下滚动后覆盖本元素。因为.t-con的margin-top是负值。
     li {
     li {
       text-align: left;
       text-align: left;
       margin-right: 20px;
       margin-right: 20px;