Browse Source

文档样式问题

zengyicheng 2 years ago
parent
commit
540b6fa1b9
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/components/study.vue

+ 6 - 1
src/components/study.vue

@@ -2468,6 +2468,8 @@ export default {
         document.getElementsByClassName("vedioList")[
         document.getElementsByClassName("vedioList")[
           this.taskCount
           this.taskCount
         ].style.height = a + "px";
         ].style.height = a + "px";
+        document.getElementsByClassName("navBox")[this.taskCount].style.height =
+          a - 40 + "px";
       }
       }
 
 
       this.isNoHomeWork = false;
       this.isNoHomeWork = false;
@@ -2714,6 +2716,8 @@ export default {
                 document.getElementsByClassName("box_course")[0].offsetHeight;
                 document.getElementsByClassName("box_course")[0].offsetHeight;
               document.getElementsByClassName("vedioList")[0].style.height =
               document.getElementsByClassName("vedioList")[0].style.height =
                 a + "px";
                 a + "px";
+              document.getElementsByClassName("navBox")[0].style.height =
+                a - 40 + "px";
             }, 500);
             }, 500);
           });
           });
           if (this.vedio[this.taskCount].length > 0) {
           if (this.vedio[this.taskCount].length > 0) {
@@ -3257,6 +3261,8 @@ export default {
       var a = document.getElementsByClassName("box_course")[0].offsetHeight;
       var a = document.getElementsByClassName("box_course")[0].offsetHeight;
       document.getElementsByClassName("vedioList")[0].style.height =
       document.getElementsByClassName("vedioList")[0].style.height =
         a + "px";
         a + "px";
+      document.getElementsByClassName("navBox")[0].style.height =
+        a - 40 + "px";
     });
     });
 
 
     setTimeout(() => {
     setTimeout(() => {
@@ -4112,7 +4118,6 @@ export default {
 .navText {
 .navText {
   cursor: pointer;
   cursor: pointer;
   margin: 0px 0px 10px 5px;
   margin: 0px 0px 10px 5px;
-  width: 112px;
   white-space: nowrap;
   white-space: nowrap;
   overflow: hidden;
   overflow: hidden;
   text-overflow: ellipsis;
   text-overflow: ellipsis;