lsc преди 1 година
родител
ревизия
4612742a44
променени са 3 файла, в които са добавени 12 реда и са изтрити 3 реда
  1. 10 1
      index.html
  2. 2 2
      src/App.vue
  3. BIN
      static/SourceHanSans-Regular.otf

+ 10 - 1
index.html

@@ -7,7 +7,12 @@
   <title>pbl-student</title>
   <style>
      @charset "utf-8";
-
+     @font-face {
+        font-family: 'Source Han Sans SC';
+        src: url('./static/SourceHanSans-Regular.otf') format('truetype');
+        font-weight: normal;
+        font-style: normal;
+      }
     div::-webkit-scrollbar {
       /*滚动条整体样式*/
       width: 6px;
@@ -27,6 +32,10 @@
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
     }
+    html,
+    body{
+      font-family: 'Source Han Sans SC', sans-serif;
+    }
   </style>
 </head>
 

+ 2 - 2
src/App.vue

@@ -171,10 +171,10 @@ body {
   width: 100%;
   background: #f2f2f2;
 }
-body {
+/* body {
   font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
     "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
-}
+} */
 #app {
   height: 100%;
   width: 100%;

BIN
static/SourceHanSans-Regular.otf