看板 Ajax 關於我們 聯絡資訊
最近開始學習React.js與webpack, 想請問如果我想要使用Google Fonts網站上的字型到React.js內, https://fonts.google.com/specimen/Roboto 我該怎麼做呢? 目前是嘗試在<head>內載入, <head> <link href="https://fonts.googleapis.com/css?family=Bungee+Inline|Roboto" rel="stylesheet"> <style> body{ font-family: 'Roboto', sans-serif; } </style> 但沒有效果 也有嘗試在webpack打包前, 在module內寫CSS字體樣式 但也是沒效果, 想請問我該怎麼做呢? React.js新手需要版上的援手, 感激不盡... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.249.114.16 ※ 文章網址: https://www.ptt.cc/bbs/Ajax/M.1479960730.A.C1A.html
sullivan1982: 基本上react只會換掉<div>,你其他寫在index.html 11/30 18:56
sullivan1982: 的東西都會還在 11/30 18:56