瀏覽代碼

更改字体为思源黑体并打包

SanHQin 1 年之前
父節點
當前提交
07c50dc86c

+ 8 - 1
dist/index.html

@@ -18,10 +18,17 @@
             -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
             -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
             background-color: rgba(0, 0, 0, 0.1);
             background-color: rgba(0, 0, 0, 0.1);
         }
         }
+				@font-face {
+					font-family: 'Source Han Sans SC';
+					src: url('./static/SourceHanSans-Regular.otf') format('truetype');
+					font-weight: normal;
+					font-style: normal;
+				}
         
         
         html,
         html,
         body {
         body {
             height: 100%;
             height: 100%;
             width: 100%;
             width: 100%;
             background: #e6eaf0;
             background: #e6eaf0;
-        }</style><link href=./static/css/app.f6af939bf7c3b242697180d2cacf0999.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.9cf3645489e7b6bb2704.js></script><script type=text/javascript src=./static/js/app.254f00f5f8f7cdb8e5aa.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>
+						font-family: 'Source Han Sans SC', sans-serif;
+        }</style><link href=./static/css/app.24eeec350a4b08d71c2d7676a5857ac4.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.9cf3645489e7b6bb2704.js></script><script type=text/javascript src=./static/js/app.9e5f01476ea13036bb00.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>

二進制
dist/static/SourceHanSans-Regular.otf


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.24eeec350a4b08d71c2d7676a5857ac4.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.24eeec350a4b08d71c2d7676a5857ac4.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.f6af939bf7c3b242697180d2cacf0999.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.f6af939bf7c3b242697180d2cacf0999.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.254f00f5f8f7cdb8e5aa.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.9e5f01476ea13036bb00.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.9e5f01476ea13036bb00.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 7 - 0
index.html

@@ -27,12 +27,19 @@
             -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
             -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
             background-color: rgba(0, 0, 0, 0.1);
             background-color: rgba(0, 0, 0, 0.1);
         }
         }
+				@font-face {
+					font-family: 'Source Han Sans SC';
+					src: url('./static/SourceHanSans-Regular.otf') format('truetype');
+					font-weight: normal;
+					font-style: normal;
+				}
         
         
         html,
         html,
         body {
         body {
             height: 100%;
             height: 100%;
             width: 100%;
             width: 100%;
             background: #e6eaf0;
             background: #e6eaf0;
+						font-family: 'Source Han Sans SC', sans-serif;
         }
         }
     </style>
     </style>
 </head>
 </head>

+ 2 - 2
src/App.vue

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

二進制
static/SourceHanSans-Regular.otf


部分文件因文件數量過多而無法顯示