简体   繁体   English

@font-face 声明不遵循 fontspring 防弹语法

[英]@font-face declaration doesn't follow the fontspring bulletproof syntax

I have been trying this code in CSS but it is giving me this error.我一直在 CSS 中尝试此代码,但它给了我这个错误。

错误:-

The Code is this:代码是这样的:

代码:-

Directory:-目录:-

目录:-

I can't figure it out how to solve this.我不知道如何解决这个问题。 Also it hasn't run in my webpage browser.它也没有在我的网页浏览器中运行。 I have used Chrome as well as Microsoft Edge but not run in both.我使用过 Chrome 和 Microsoft Edge,但两者都没有运行。

The Problem Here was the font URL in the font-face:问题这是字体中的字体 URL:

Solution: Replace line 3 with the below line.解决方案:将第 3 行替换为以下行。

src:url('../bebasNeue-Regulat.ttf') src:url('../bebasNeue-Regulat.ttf')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM