We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在自定义字体被渲染出来之前,需要先进行加载,大多数浏览器在字体还未还在出来之前会先隐藏字体,导致网络差的情况下会有一段时间的空白
@font-face { font-family: 'sentyGoldenBell'; src: url('sentyGoldenBell.otf'); font-display: swap; } p { font-family: 'sentyGoldenBell'; }
除了样式上可以处理,也推荐一个比较成熟的脚本处理方案:Font Face Observer 脚本库
The text was updated successfully, but these errors were encountered:
No branches or pull requests
浏览器是如何还在自定义字体的
在自定义字体被渲染出来之前,需要先进行加载,大多数浏览器在字体还未还在出来之前会先隐藏字体,导致网络差的情况下会有一段时间的空白
font-display 使用
效果
兼容性
脚本处理
除了样式上可以处理,也推荐一个比较成熟的脚本处理方案:Font Face Observer 脚本库
The text was updated successfully, but these errors were encountered: