跨浏览器“防弹” CSS3 @font-face 语法

发布于 2025-01-01 05:37:27 字数 622 浏览 7 评论 0原文

我见过很多跨浏览器 @font-face 语法的尝试,包括:

哪一个最好?哪一个浏览器支持最好?
我不担心 IE 5 支持,:) 但我不希望浏览器必须下载同一字体的多个版本。

谢谢你们!

I have seen many attempts at a cross-browser @font-face syntax including the:

Which one is best? Which one has the best browser support?
I'm not worrying about IE 5 support, :) but I don't want a browser to have to download multiple versions of the same font.

Thanks guys!

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

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

发布评论

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

评论(1

新一帅帅 2025-01-08 05:37:27

新的 Bulletproof @Font-Face 语法 是最新版本,所以您最好打赌就是使用那个。

如果您对不同的语法及其形成方式感兴趣(以及为什么需要所有这些奇怪的技巧),我建议观看 Jake Archibald 的 # Fronteers11 演示文稿幻灯片在这里。

The New Bulletproof @Font-Face Syntax is the latest iteration, so your best bet is to use that one.

If you’re interested in the different syntaxes and how they came to be (and why all those weird hacks are needed), I’d suggest watching Jake Archibald’s #fronteers11 presentation. Slides are here.

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