Browse Source

上传字体同步修改

namejr 4 years ago
parent
commit
e207637d86
1 changed files with 2 additions and 0 deletions
  1. 2 0
      EBook.Web/Common/tasklib_book.js

+ 2 - 0
EBook.Web/Common/tasklib_book.js

@@ -2004,7 +2004,9 @@ function showImageFunc(Id, leftVal, allTimes) {
 // 控制字体大小
 // 控制字体大小
 function adjustFontSize(FontSize) {
 function adjustFontSize(FontSize) {
     var TFontSize = 16 * 100 / FontSize;
     var TFontSize = 16 * 100 / FontSize;
+    var TMarginTop = (47 - TFontSize) / 2;
     $.each($(".LDFTimerS"), function (index, element) {
     $.each($(".LDFTimerS"), function (index, element) {
+        $(this).css("margin-top", TMarginTop + "px");
         $(this).find("span").css("font-size", TFontSize + "px");
         $(this).find("span").css("font-size", TFontSize + "px");
     });
     });
 }
 }