【发布时间】:2014-10-21 06:55:43
【问题描述】:
我使用 Open Sans Light 在 IE 和 Chrome 上显示 html 页面没有问题,但是当使用 Firefox 时,它不理解这种类型的字体。
这是定义我的字体的 .css 部分:
.txtName
{
margin-left: 18px;
font-size: 20px;
color: #0140be;
font-family: 'Open Sans Light' !important;
font-weight:normal;
line-height: 1.4em;
}
这是html文件中需要在IE、Chrome和FF上显示相同的部分:
<div class="txtName-Main">
<h1 class="txtName">Your pathway to success starts here</h1>
</div>
可能是什么问题?
谢谢
【问题讨论】:
-
你是如何加载字体的?此外,您的开头
h1标记没有第一个<符号。 -
我的系统文件夹中只有字体。我应该如何加载字体?
-
我使用了
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>,但没有帮助