Browse Source

上传处理随机宽度

namejr 4 năm trước cách đây
mục cha
commit
f10959ac52
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      EBook.Web/Common/tasklib_book.js

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

@@ -605,7 +605,7 @@ function bindEventTeaOrignalYS() {
                     uHtml.innerHTML = "   ";
                     //改错题,要随机下划线长度
                     if ($(parent).hasClass('correntQue')) {
-                        uHtml.style = "width:" + randomNum(220, 300) + "px;";
+                        uHtml.style = "width:" + randomNum(220, 300) + "px;display:inline-block;";
                     }
                     uHtml.setAttribute("answer-anstext", "");
                 }
@@ -738,7 +738,7 @@ function bindEventYS() {
                     uHtml.innerHTML = "   ";
                     //改错题,要随机下划线长度
                     if ($(parent).hasClass('correntQue')) {
-                        uHtml.style = "width:" + randomNum(220, 300) + "px;";
+                        uHtml.style = "width:" + randomNum(220, 300) + "px;display:inline-block;";
                     }
                     uHtml.setAttribute("answer-anstext", "");
                 }