Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Firefox 中,当页面加载时,它会在使用指定的字体呈现之前显示片刻的默认字体(例如 Times New Roman)(取决于连接速度)。我知道这不能更快,但是如何在字体加载时更改之前将 Arial 设置为默认字体?
在您的 font-family 属性中指定一个额外的字体将解决您的问题。
font-family: "YourFontFaceFont", arial;
这将导致在“YourFontFaceFont”可用之前使用 arial。