中转站点:https://woocommerce-81222-860870.cloudwaysapps.com/
--
实时站点显示了正确的草书字体。但在试运行阶段,它不起作用。我不得不更新主题,但现在它不能工作。我也有相同的路径。不知道发生了什么。
我尝试过不同种类的路径。
@font-face {
font-family: 'quentinregular';
src: url('font/quentin-webfont.woff2') format('woff2'),
url('font/quentin-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
我没有看到字体有任何错误。
发布于 2019-06-05 03:22:44
该字体不再存在于font/quentin-webfont.woff或font/quentin-webfont.woff2中,您需要找到字体文件的新路径。尝试在文件管理器中搜索以查找字体
发布于 2019-06-05 03:27:32
在您的head
标签中,您有一个包含以下代码的style
标签:
@font-face { font-family:quentin;src:url(//81222-445514-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/2019/05/quentin.woff2) format('woff2'), url(//81222-445514-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/2019/05/quentin.woff) format('woff'), url(//81222-445514-raikfcquaxqncofqfm.stackpathdns.com/wp-content/uploads/2019/05/Quentin.ttf) format('truetype');}
所以,这里有font-family:quentin;
,但是CSS规则包含font-family:quentinregular;
。你需要改变这一点。
https://stackoverflow.com/questions/56450047
复制相似问题