Browse Source

修改了成功展示导航栏

Q-ABAB 2 years ago
parent
commit
bdc34835c6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/resultShow/resultShowDetail.vue

+ 2 - 1
src/views/resultShow/resultShowDetail.vue

@@ -476,7 +476,7 @@
             document.querySelector(".rs1apply").addEventListener("scroll",(e)=>{
                 let scrollTop = e.target.scrollTop;
                 if(scrollTop>=300){
-                    Nav.style = `width:100%;border-radius:0;display:flex;justify-content: center;position: fixed;top:calc(60px - 20px);z-index:99;align-items: center;box-shadow: 0 0 5px gray;`
+                    Nav.style = `width:100%;padding:0 20%;box-sizing: border-box;border-radius:0;display:flex;justify-content: space-around;position: fixed;top:calc(60px - 20px);z-index:99;align-items: center;box-shadow: 0 0 5px gray;`
                 }else{
                     Nav.style = ``
                 }
@@ -491,6 +491,7 @@
         height: 100%;
         // height: auto;
         display: flex;
+        
         flex-direction: column;
         align-items: center;
         background-color: #e6eaf0;