@font-face 无法识别

发布于 2025-01-06 21:19:42 字数 276 浏览 3 评论 0原文

好的,到目前为止我的网站已经建立,但我使用的两种字体没有显示。我转移了字体并将它们放在与我的网页相同的文件夹中。我还在 css (styless.css) 中使用了 @font-face。我不确定我哪里错了。

网站:http://envycosmetics.zxq.net/TestSite/webpages/index.html

Ok I have my site up so far but the two fonts I used are not showing up. I transferred the fonts and put them in the same folder as my webpages. I also used @font-face in css (styless.css). I'm not sure where I went wrong.

Website: http://envycosmetics.zxq.net/TestSite/webpages/index.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

送你一个梦 2025-01-13 21:19:42

我正在查看 styless.css,但看不到您在哪里使用了 @font-face。确保您这样做:

@font-face { font-family: FontName; src: url('path/to/font.otf'); } 

然后像这样调用它:

#navBar { font-family: FontName, sans-serif; }

另外,不要忘记为不支持 @font-face 的浏览器调用另一种字体,如 #navBar 值中所示。

I'm looking at styless.css, and I can't see where you used @font-face. Make sure you do it like this:

@font-face { font-family: FontName; src: url('path/to/font.otf'); } 

Then call it like this:

#navBar { font-family: FontName, sans-serif; }

Also, don't forget to call another font for browsers that don't support @font-face, as shown in #navBar values.

淡忘如思 2025-01-13 21:19:42

我还在CSS(styless.css)中使用了@font-face

不...不,你没有。

I also used @font-face in css (styless.css)

No... no, you didn't.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文