2013-07-30 62 views
0

我已經下載了Ubuntu字體在我的網頁自定義字體不能正常工作的Ubuntu字體

#link-r { 
    color: white; 
font-family: "ubuntu"; 
font-size: 16px; 
float: left; 
text-decoration: none; 
} 

@font-face { 
    font-family: 'ubuntu'; /*a name to be used later*/ 
    src: url('fonts/ubuntu.tff'); /*URL to font*/ 
} 

回答

0

在瀏覽器,它不工作使用?請確保在提到的路徑中提供了字體類型。

Internet Explorer 9,Firefox,Opera,Chrome和Safari支持@ font-face規則。

但是,Internet Explorer 9僅支持.eot類型的字體,而Firefox,Chrome,Safari和Opera支持.ttf和.otf類型的字體。

注意:Internet Explorer 8及更早版本不支持@ font-face規則。

+0

它在Chrome – IceDawg

+0

工作沒關係得到它的工作的感謝 – IceDawg

+0

@IceDawg你可以張貼如何... – EnchanterIO

0

下面的代碼行添加到您的網站:

<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'> 

欲瞭解更多信息,請看一看Here