問題描述
更新的索引和 css 字體沒有改變 (Updated index and css font not changing)
不管我怎麼嘗試,我都無法改變這個字體。
我已經得到了google字體的url並將代碼插入到我的index.php中
這是我的自定義 css:
fiddle: 1963jety
它仍然顯示為 arial 字體。
參考解法
方法 1:
Try to use font‑weight: 400
because Fjalla One is only 400 Normal.
方法 2:
Yea, I need to see your code. If it's not updating, something is probably wrong with your css code. It may not be written correctly.
方法 3:
Include this code in your CSS file:
@import url(https://fonts.googleapis.com/css?family=Fjalla+One);
Which will import the font, then:
h1{
font‑family: Fjalla One;
}
(by coderforthepeople、lukas.hotovy、user1445657、CrabLab)