2017-07-03 53 views
0

在創建網頁我注意到的是雙引號被錯誤地產生在Firefox(54.0爲Ubuntu),如圖中的圖片: image雙引號不能正確打印| Firefox | Lato字體|

這被認爲是:。信息,」在PROC

這鉻看起來沒事

我用下面的字體在我的html代碼:

<head> 
<link href="https://fonts.googleapis.com/css?family=Lato:300" rel="stylesheet"> 
<style> 
body { 
margin:0; 
font-size: 100%; 
font-family: 'Lato', sans-serif; 
} 
</style> 
</head> 
+0

這段代碼沒有問題。唯一我能想到的是你的鍵盤輸入與英語不同,我測試並得到正確的引號。如果您使用的不是英文作爲輸入,請檢查您的系統鍵盤輸入 –

+0

@ShanilFernando - 如果問題在於鍵盤輸入,那麼問題會在鍵入字符時顯示,而不是在瀏覽器中加載時顯示。 – Quentin

+0

@Quentin是的,我同意。我錯了。 –

回答

0

如果您使用的HTML4你可以嘗試:

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> 

HTML5

<meta charset="UTF-8"> 

https://www.w3schools.com/html/html_charset.asp

你應該關閉的樣式標籤:

<head> 
<link href="https://fonts.googleapis.com/css?family=Lato:300" 
rel="stylesheet"> 
<style> 
    body { 
     margin:0; 
     font-size: 100%; 
     font-family: 'Lato', sans-serif; 
    } 
</style> 
</head> 

不要忘記HTML標籤。

我希望這對你有所幫助。

+0

ISO-8859-1?這個世紀是什麼?現在UTF-8應該是默認的。 – Quentin