Browse Source

导航显示bug

zhouna 4 years atrás
parent
commit
12ebba5402
3 changed files with 13 additions and 6 deletions
  1. 6 3
      src/css/staticInfo.less
  2. 6 3
      src/css/staticInfoOut.less
  3. 1 0
      src/js/staticInfoOut.js

+ 6 - 3
src/css/staticInfo.less

@@ -144,10 +144,11 @@
     right:15px;
     top: 0;
     margin-right: 14px;
-    overflow: auto;
+    overflow-y: auto;
     background-color: #EDFAFF;
     padding: 25px 0;
-    /*height: 100%;*/
+    height: calc(100% - 50px);
+    overflow-x: hidden;
   }
 
   .anchors ul {
@@ -184,7 +185,9 @@
   z-index: 1;
 }
 .anchors .a-circle:last-child{
-  bottom: 22px;
+  position: unset;
+  margin-left: 41px;
+  margin-top: -16px;
 }
   .anchors i {
     position: absolute;

+ 6 - 3
src/css/staticInfoOut.less

@@ -124,10 +124,11 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   right:15px;
   top: 0;
   margin-right: 14px;
-  overflow: auto;
+  overflow-y: auto;
   background-color: #EDFAFF;
   padding: 25px 0;
-  /*height: 100%;*/
+  height: calc(100% - 50px);
+  overflow-x: hidden;
 }
 
 .anchors ul {
@@ -164,7 +165,9 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   z-index: 1;
 }
 .anchors .a-circle:last-child{
-  bottom: 22px;
+  position: unset;
+  margin-left: 41px;
+  margin-top: -16px;
 }
 .anchors i {
   position: absolute;

+ 1 - 0
src/js/staticInfoOut.js

@@ -209,6 +209,7 @@ function bindTabClick(){
 function adjustHeight() {
   var ht = window.innerHeight || document.documentElement.clientHeight;
   $(".content,.content .infos").height(ht - 228 + "px");
+  /*$(".anchors").height(ht - 258 + "px");*/
 }
 function adjustWidth() {
   var wt = window.innerWidth || document.documentElement.clientWidth;