Procházet zdrojové kódy

修改文章内容的行间距

yellowtaotao před 3 roky
rodič
revize
cf692544e5

binární
src/assets/image/learn/redIcon.jpg


+ 2 - 1
src/views/home/learn/page-learn-child.vue

@@ -266,7 +266,8 @@ export default {
         display: -webkit-box;
         -webkit-box-orient: ho;
         -webkit-line-clamp: 10;
-        font-family: SimSun;
+        // font-family: SimSun;
+        font-family: FangSong;
       }
       .contentItemstates {
         font-size: 0.6rem;

+ 12 - 10
src/views/home/learn/page-learn-content.vue

@@ -532,15 +532,15 @@ export default {
       return img;
     },
     previewFile(url) {
-    //   let strArr = url.split(".");
-    //   let type = strArr[strArr.length - 1];
-    //   lx.utils.previewFile({
-    //     url: url,
-    //     name: "",
-    //     size: 1000,
-    //     type: type,
-    //     moreHidden: false
-    //   });
+      //   let strArr = url.split(".");
+      //   let type = strArr[strArr.length - 1];
+      //   lx.utils.previewFile({
+      //     url: url,
+      //     name: "",
+      //     size: 1000,
+      //     type: type,
+      //     moreHidden: false
+      //   });
     }
   }
 };
@@ -589,6 +589,7 @@ export default {
       letter-spacing: 0.2rem;
       .learn-content-body-description-txt {
         font-size: 0.8rem;
+        line-height: 1.4rem;
       }
       .imgDolg {
         overflow-y: scroll;
@@ -807,6 +808,7 @@ h3,
 h4,
 h5,
 h6 {
-  font-family: SimSun;
+  // font-family: SimSun;
+  font-family: FangSong;
 }
 </style>

+ 2 - 1
src/views/home/learn/page-learn-recommend.vue

@@ -229,7 +229,8 @@ export default {
         display: -webkit-box;
         -webkit-box-orient: ho;
         -webkit-line-clamp: 10;
-        font-family: SimSun;
+        // font-family: SimSun;
+        font-family: FangSong;
       }
       .contentItemstates {
         font-size: 0.6rem;