浏览代码

字体文件路径

cxmo 1 年之前
父节点
当前提交
1440e95189
共有 2 个文件被更改,包括 11 次插入9 次删除
  1. 11 0
      index.html
  2. 0 9
      src/style/common.scss

+ 11 - 0
index.html

@@ -6,6 +6,17 @@
     <title>弘则研究</title>
     <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
     <script src="/jquery-3.6.0.min.js"></script>
+    <!-- 字蛛压缩字体 -->
+    <style>
+        @font-face {
+            font-family: '思源黑体';
+            src: url(./SourceHanSansSC-Regular.ttf);
+        }
+        @font-face {
+            font-family: '思源宋体';
+            src: url(./SourceHanSerifCN-Regular.ttf);
+        }
+    </style>
   </head>
   <body>
     <div id="app"></div>

+ 0 - 9
src/style/common.scss

@@ -23,12 +23,3 @@ input{
 li {
     list-style: none;
 }
-//字蛛压缩字体
-@font-face {
-    font-family: '思源黑体';
-    src: url(/public/SourceHanSansSC-Regular.ttf);
-}
-@font-face {
-    font-family: '思源宋体';
-    src: url(/public/SourceHanSerifCN-Regular.ttf);
-}