Browse Source

修改表格样式

namejr 4 years ago
parent
commit
ce6643c480
1 changed files with 5 additions and 7 deletions
  1. 5 7
      EBook.Web/Common/tasklib_book.js

+ 5 - 7
EBook.Web/Common/tasklib_book.js

@@ -37,7 +37,6 @@ var GetPadVal = function () {
 };
 var AdjustTableFunc = function () {
     // 添加宽度处理
-    $("td").attr("style", "");
     $(document.body).append('<span id="pContrainId"></span>');
     var Index = 0;
     $.each($("table"), function (index, item) {
@@ -92,7 +91,6 @@ var AdjustTableFunc = function () {
         }
         Index += 1;
     });
-
     $.each($(".container-table"), function (index, item) {
         $(item).css("width", BodyWidth + "px");
     });
@@ -309,10 +307,10 @@ function bindEventTeaOrignalYS() {
                     uHtml.innerHTML = "&nbsp;&nbsp;&nbsp;";
                     //改错题,要随机下划线长度
                     if ($(parent).hasClass('correntQue')) {
-                    uHtml.style = "width:" + randomNum(220, 300) + "px;";
-                }
+                        uHtml.style = "width:" + randomNum(220, 300) + "px;";
+                    }
                     uHtml.setAttribute("data-text", "");
-            }
+                }
             }
             $(spanHtml).html(uHtml.outerHTML);
             $(item).after(spanHtml);
@@ -540,8 +538,8 @@ function bindEventYS() {
                     uHtml.innerHTML = "&nbsp;&nbsp;&nbsp;";
                     //改错题,要随机下划线长度
                     if ($(parent).hasClass('correntQue')) {
-                    uHtml.style = "width:" + randomNum(220, 300) + "px;";
-                }
+                        uHtml.style = "width:" + randomNum(220, 300) + "px;";
+                    }
                     uHtml.setAttribute("data-text", "");
                 }
             }