我是新來的網絡編程,我試圖改變使用CSS的PHP頁面的字體,但是當我使用網上的東西它不工作,但在任何地方它顯示相同的東西這樣做, 這是CSS腳本:CSS更改字體錯誤
body {
font-family: 'Roboto Condensed', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Amatic SC', cursive;
}
這是PHP的一個:
<!DOCTYPE HTML>
<html>
<head>
<link href='http://fonts.googleapis.com/css?family=Amatic+SC:400,700|Roboto+Condensed:400,300' rel='stylesheet' type='text/css'>
</head>
</html>
<?php
echo "<h1>Hi guys</h1>";
?>
的可能的複製(http://stackoverflow.com/questions/12144000/using-custom-fonts-using -css) –
我已經嘗試過,但那並不奏效,每個人都告訴我試試這個。 –
檢查我的更新! –