以下字体声明在 Internet Explorer 11 中不起作用.
font:300 28px/1.1em 'Lora', arial, sans-serif;
文本显示为 arial
而不是 Lora
。 Lora
是一个 Google Font .
它在 Mozilla Firefox 中工作, QupZilla和 Google Chrome .
但是当我将声明更改为
font:300 28px/1.1em 'Lora';
它在 IE 11 中工作。
可能是什么问题?
更奇怪:当我将网站作为 *.html
文件保存到我的本地磁盘时,字体显示正确。 :-(
最佳答案
在 <head>
上嵌入 Google 字体.
<link href='http://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
然后尝试下面的 css
.class{
font-family: 'Lora', Arial, sans-serif;
font-weight:400;
font-size:28px/1.1em;
}
关于css - IE 11 无法正确处理字体声明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21657744/