更新的索引和 css 字體沒有改變 (Updated index and css font not changing)


問題描述

更新的索引和 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 coderforthepeoplelukas.hotovyuser1445657CrabLab)

參考文件

  1. Updated index and css font not changing (CC BY‑SA 2.5/3.0/4.0)

#css #fonts #PHP #wordpress #html






相關問題

在圖像上淡入文本 (Fade in text over an image)

可以使用 css3 轉換輪廓顏色 (possible to transition outline color with css3)

以背景色為條件的 if 語句 (If statement with background color as condition)

Nội dung từ <p> biến mất khi tôi quay lại trang (Content from <p> disappears when I return to the page)

當按鈕向右浮動時,ng-click 不起作用 (ng-click doesn't work when the button is floated to the right)

帶有偽 css 的背景顏色層 (Background color layer with pseudo css)

是否可以製作離線工作的網絡應用程序? (Is it possible to make a web-app which works offline?)

chrome中帶有省略號的多行文本問題 (issue with multiline text with ellipsis in chrome)

將字符串轉換為類的安全名稱 (Convert string to safe name for class)

絕對定位跨度收縮 (Absolute Positioned Span Shrinks)

如何設置單選按鈕的樣式,使其看起來像普通的可點擊按鈕? (How do I style a radio button to look like a normal clickable button?)

無法獲得白色和灰色的 CSS 進度條 (Not able to get the CSS progress bar with white and grey)







留言討論