谷歌字体仅适用于index.html的某些文本



谷歌字体不是为我的网站工作,因为字体只适用于[p]文本在index.html。我需要帮助修复这个得到字体在所有的文本。

我试着添加[h1], [p],和[a]到CSS文件,这绝对没有做什么。

Input: <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Zen+Dots&display=swap" rel="stylesheet"> + font reference css for all types of text I used
Output: Code only works for index.html <p> tags

在您的其他文件中,您需要将这些<link>标记包含在<head>标记中。只需在浏览器的DevTools中检查即可。

最新更新