🔥 适配路径映射的情况

This commit is contained in:
崮生 2020-03-21 14:29:12 +08:00
parent 4834e91333
commit 72b53880a5

View File

@ -13,7 +13,7 @@
@font-face {
font-family: "test";
src:
url("/generate_fonts_dynamically.ttf?temp=true&font=优设标题黑&text=优设标题黑(直接改这里和前面的字体名看效果)") format("truetype");
url("${location.pathname}generate_fonts_dynamically.ttf?temp=true&font=优设标题黑&text=优设标题黑(直接改这里和前面的字体名看效果)") format("truetype");
font-style: normal;
font-weight: normal;
}