Ver Fonte

上传音频高度处理和表格内的下划线处理

namejr há 4 anos atrás
pai
commit
82005073d6

+ 31 - 6
EBook.Web/Common/tasklib_book.css

@@ -8,13 +8,11 @@ p{word-break: break-word;word-wrap: break-word;clear:both;line-height: 22px;}
     border: 1px solid #6ab7ff;
     margin-bottom: 0px;
 }
-.answer-body[data-astatus='1'][data-iscflag='1'],.answer-body[data-astatus='2'][data-iscflag='1'] {
-    /*line-height: 22px;
-    display:inline !important;*/
+.boxQue .answer-body{
+    line-height: 20px;
 }
 .boxQue .answer-text{
     height: 20px;
-    line-height: 0px;
     display:inline !important;
 }
 p .answer-body{
@@ -271,11 +269,38 @@ table tr td:last-child{
     text-align: right;
     overflow:hidden;
     margin-right: 24px;
-}
-.LDFTimerS span{
     color:rgba(255,255,255,0.6);
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='80'] {
+    margin-top:13px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='80'] span{
+    font-size: 18px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='100'] {
+    margin-top:12px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='100'] span{
     font-size: 16px;
 }
+.LDFTimerS[data-mtype='1'][data-fsFlag='120'] {
+    margin-top:12px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='120'] span{
+    font-size: 14px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='140'] {
+    margin-top:10px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='140'] span{
+    font-size: 12px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='160'] {
+    margin-top:8px;
+}
+.LDFTimerS[data-mtype='1'][data-fsFlag='160'] span{
+    font-size: 10px;
+}
 /*#endregion音频插件*/
 img.cAStauts[showflag='0']{
     opacity:0;

+ 3 - 21
EBook.Web/Common/tasklib_book.js

@@ -412,10 +412,10 @@ var AddListenDiv = function (NodeHandle, NIndex, sWidthVal) {
             var SelectedN = (i == 0 ? 1 : 0);
             htmlStr += '<div class="LDivTItem LDivTItem_' + NIndex + ' LDivTItem_' + NIndex + '_' + i + '" data-selected="' + SelectedN + '" onclick="cLSourceFunc(' + NIndex + ',' + i + ')" data-auduourl="' + UrlArr[i] + '">听力材料' + (i + 1) + '</div>';
         }
-        htmlStr += '</div><div class="LDivFooter"><div class="LDFPlayS LDFPlayS_' + NIndex + '" data-playstatus="0" onclick="playMusicFunc(' + NIndex + ')"></div><div class="LDFPauseS LDFPauseS_' + NIndex + '" onclick="pauseMusicFunc(' + NIndex + ')"></div><div class="LDFProcS"><div class="LDFPWhite LDFPWhite_' + NIndex + '"></div><div class="LDFProcImg LDFProcImg_' + NIndex + '"></div></div><div class="LDFTimerS"><span class="RunTime RunTime_' + NIndex + '">00:00</span><span>/</span><span class="RunAllTime RunAllTime_' + NIndex + '">00:00</span></div></div></div>';
+        htmlStr += '</div><div class="LDivFooter"><div class="LDFPlayS LDFPlayS_' + NIndex + '" data-playstatus="0" onclick="playMusicFunc(' + NIndex + ')"></div><div class="LDFPauseS LDFPauseS_' + NIndex + '" onclick="pauseMusicFunc(' + NIndex + ')"></div><div class="LDFProcS"><div class="LDFPWhite LDFPWhite_' + NIndex + '"></div><div class="LDFProcImg LDFProcImg_' + NIndex + '"></div></div><div class="LDFTimerS" data-mtype="' + cTTypeFunc + '" data-fsFlag="100"><span class="RunTime RunTime_' + NIndex + '">00:00</span><span>/</span><span class="RunAllTime RunAllTime_' + NIndex + '">00:00</span></div></div></div>';
     }
     else if (UrlStr != null) {
-        var htmlStr = '<div class="ListenDiv" data-status="0" style="width:' + ListenDivWidth + 'px;"><div class="LDivTop" style="width:1px;height:0px;overflow:hidden;"><div class="LDivTItem LDivTItem_' + NIndex + ' LDivTItem_' + NIndex + '_0" data-selected="1" onclick="cLSourceFunc(' + NIndex + ',0)" data-selected="1"  data-auduourl="' + UrlStr + '"></div></div><div class="LDivFooter"><div class="LDFPlayS LDFPlayS_' + NIndex + '" data-playstatus="0" onclick="playMusicFunc(' + NIndex + ')"></div><div class="LDFPauseS LDFPauseS_' + NIndex + '" onclick="pauseMusicFunc(' + NIndex + ')"></div><div class="LDFProcS"><div class="LDFPWhite LDFPWhite_' + NIndex + '"></div><div class="LDFProcImg LDFProcImg_' + NIndex + '"></div></div><div class="LDFTimerS"><span class="RunTime RunTime_' + NIndex + '">00:00</span><span>/</span><span class="RunAllTime RunAllTime_' + NIndex + '">00:00</span></div></div></div>';
+        var htmlStr = '<div class="ListenDiv" data-status="0" style="width:' + ListenDivWidth + 'px;"><div class="LDivTop" style="width:1px;height:0px;overflow:hidden;"><div class="LDivTItem LDivTItem_' + NIndex + ' LDivTItem_' + NIndex + '_0" data-selected="1" onclick="cLSourceFunc(' + NIndex + ',0)" data-selected="1"  data-auduourl="' + UrlStr + '"></div></div><div class="LDivFooter"><div class="LDFPlayS LDFPlayS_' + NIndex + '" data-playstatus="0" onclick="playMusicFunc(' + NIndex + ')"></div><div class="LDFPauseS LDFPauseS_' + NIndex + '" onclick="pauseMusicFunc(' + NIndex + ')"></div><div class="LDFProcS"><div class="LDFPWhite LDFPWhite_' + NIndex + '"></div><div class="LDFProcImg LDFProcImg_' + NIndex + '"></div></div><div class="LDFTimerS" data-mtype="' + cTTypeFunc + '" data-fsFlag="100"><span class="RunTime RunTime_' + NIndex + '">00:00</span><span>/</span><span class="RunAllTime RunAllTime_' + NIndex + '">00:00</span></div></div></div>';
     }
     $(NodeHandle).css("width", "1px").css("height", "1px").css("overflow", "hidden").after(htmlStr);
     // 添加滑块事件
@@ -2284,25 +2284,7 @@ function StopAllCss() {
 };
 // 控制字体大小
 function adjustFontSize(FontSize) {
-    var TFontSize = 16 * 100 / FontSize;
-    var TMarginTop = (47 - TFontSize) / 2;
-    $.each($(".LDFTimerS"), function (index, element) {
-        $(this).css("margin-top", TMarginTop + "px");
-        $(this).find("span").css("font-size", TFontSize + "px");
-    });
-    $(".LDFTimerS").css("line-height", TFontSize + "px");
-    //if (FontSize == 100) {
-    //    $(".boxQue").find(".answer-text").css("font-size", "16px");
-    //}
-    //else if (FontSize == 120) {
-    //    $(".boxQue").find(".answer-text").css("font-size", "16px");
-    //}
-    //else if (FontSize == 140) {
-    //    $(".boxQue").find(".answer-text").css("font-size", "8px");
-    //}
-    //else if (FontSize == 160) {
-    //    $(".boxQue").find(".answer-text").css("font-size", "6px");
-    //}
+    $(".LDFTimerS").attr("data-fsFlag", FontSize);
 }
 // 音频进度条按下回调
 function mobileTSFunc(ID) {

+ 2 - 0
EBook.Web/EBook.Web.csproj

@@ -152,6 +152,8 @@
     <Content Include="Lghp\22518.lghp" />
     <Content Include="Lghp\22788.lghp" />
     <Content Include="Lghp\BModel.lghp" />
+    <Content Include="Lghp\22694.lghp" />
+    <Content Include="Lghp\data20211251605.lghp" />
     <None Include="Lghp\gaicuo.lghp" />
     <Content Include="NK\tasklib_book.css" />
     <Content Include="NK\tasklib_book.js" />