guhongwei 4 years ago
parent
commit
5189de0aa4
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/scienceNews/index.vue

+ 8 - 0
src/views/scienceNews/index.vue

@@ -100,10 +100,18 @@ export default {
     overflow: hidden;
   }
   .down {
+    position: relative;
     .search {
+      position: fixed;
+      width: 100%;
+      z-index: 999;
     }
     .data {
+      position: absolute;
+      width: 100%;
+      top: 54px;
       padding: 10px;
+      background: #f9fafc;
       .list {
         background-color: #fff;
         border-radius: 5px;