Explorar o código

文章列表的标题行间距、字体;文章内容的标题、字体

yellowtaotao %!s(int64=3) %!d(string=hai) anos
pai
achega
9db13582f9

BIN=BIN
src/assets/fontFamily/FZFSJ.OTF


BIN=BIN
src/assets/fontFamily/FZFSJW.TTF


+ 13 - 0
src/styles/common.scss

@@ -43,6 +43,7 @@ figcaption {
   box-sizing: border-box;
   -webkit-tap-highlight-color: transparent;
   -webkit-font-smoothing: antialiased;
+
   &:hover {
     outline: none;
   }
@@ -150,15 +151,19 @@ body {
   0% {
     opacity: 1;
   }
+
   25% {
     opacity: 0.5;
   }
+
   50% {
     opacity: 1;
   }
+
   75% {
     opacity: 0.5;
   }
+
   100% {
     opacity: 1;
   }
@@ -167,3 +172,11 @@ body {
 .animation_opactiy {
   animation: backOpacity 2s ease-in-out infinite;
 }
+
+/*引入字体-仿宋*/
+@font-face {
+  font-family: 'fangSong-FZFSJW';
+  src: url('../assets/fontFamily/FZFSJW.TTF');
+  font-weight: normal;
+  font-style: normal;
+}

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

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

+ 3 - 1
src/views/home/learn/page-learn-content.vue

@@ -590,6 +590,8 @@ export default {
       .learn-content-body-description-txt {
         font-size: 0.8rem;
         line-height: 1.4rem;
+        font-family: fangSong-FZFSJW;
+        font-weight: bold;
       }
       .imgDolg {
         overflow-y: scroll;
@@ -809,6 +811,6 @@ h4,
 h5,
 h6 {
   // font-family: SimSun;
-  font-family: FangSong;
+  font-family: fangSong-FZFSJW;
 }
 </style>

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

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