Bladeren bron

问题修改

1178232204@qq.com 3 jaren geleden
bovenliggende
commit
1e38dcca97
2 gewijzigde bestanden met toevoegingen van 31 en 31 verwijderingen
  1. 6 6
      src/css/cdss.less
  2. 25 25
      src/js/cdss.js

+ 6 - 6
src/css/cdss.less

@@ -232,24 +232,24 @@ body{
         margin-right: 3px;
       }
       .hidden-i{
-        display: none;
+        visibility: hidden;
       }
     }
     &:hover{
       .infoImg+.hidden-i{
-        display: none;
+        visibility: hidden;
       }
       .infoImg{
-        display: inline;
+        visibility: visible;
       }
     }
     .infoImg:hover{
-      display: inline;
+      visibility: visible;
     }
 }
 .pushItemBox:hover {
   .infoImg {
-    display: inline;
+    visibility: inline;
   }
 }
 .infoImg,.hidden-i{
@@ -258,7 +258,7 @@ body{
     top: 5px;
     right: 3px;*/
     cursor: pointer;
-    display: none;
+    visibility: hidden;
     vertical-align: middle;
 }
 .hidden-i{

+ 25 - 25
src/js/cdss.js

@@ -519,31 +519,31 @@ function renderWarningDiag(list, name, number) {
     $('.moduleItem.warning').append(str)
     $('.moduleItem.warning').css("display", "block")
   }
-  $(".pushItemBox").hover(function () {
-    $(this).find(".infoImg").css("display", "inline");
-  }, function () {
-    $(this).find(".infoImg").css("display", "none");
-  });
-  $(".pushItemName").hover(function () {
-    $(this).find(".infoImg").css("display", "inline");
-  }, function () {
-    $(this).find(".infoImg").css("display", "none");
-  });
-  $(".item-name").hover(function () {
-    $(this).find(".infoImg").css("display", "inline");
-  }, function () {
-    $(this).find(".infoImg").css("display", "none");
-  });
-  $(".hidden-i").hover(function () {
-    $(this).find(".infoImg").css("display", "inline");
-  }, function () {
-    $(this).find(".infoImg").css("display", "none");
-  });
-  $(".infoImg").hover(function () {
-    $(this).find(".infoImg").css("display", "inline");
-  }, function () {
-    $(this).find(".infoImg").css("display", "none");
-  });
+  // $(".pushItemBox").hover(function () {
+  //   $(this).find(".infoImg").css("display", "inline");
+  // }, function () {
+  //   $(this).find(".infoImg").css("display", "none");
+  // });
+  // $(".pushItemName").hover(function () {
+  //   $(this).find(".infoImg").css("display", "inline");
+  // }, function () {
+  //   $(this).find(".infoImg").css("display", "none");
+  // });
+  // $(".item-name").hover(function () {
+  //   $(this).find(".infoImg").css("display", "inline");
+  // }, function () {
+  //   $(this).find(".infoImg").css("display", "none");
+  // });
+  // $(".hidden-i").hover(function () {
+  //   $(this).find(".infoImg").css("display", "inline");
+  // }, function () {
+  //   $(this).find(".infoImg").css("display", "none");
+  // });
+  // $(".infoImg").hover(function () {
+  //   $(this).find(".infoImg").css("display", "inline");
+  // }, function () {
+  //   $(this).find(".infoImg").css("display", "none");
+  // });
 }
 
 function renderLis(list, showNum) {