0

好的,我以前用过很多次,但这让我很生气,我已经从客户的网站上分离出文本,但仍然无法让字体工作?我什至尝试过不同的字体文件,但没有。这是我的 CSS -

@charset "utf-8";

html { 
    padding:0; 
    margin:0;
    overflow-y: scroll;
    overflow-x: hidden;}


@font-face {
    font-family: lucida; /*a name given to our new font family*/
    src: url(‘garamond-webfont.ttf’),
    url(‘garamond-webfont.woff’),
    url(‘garamond-webfont.eot’); /* IE9 */ }

body { 
    margin:0; 
    padding:0;
    width:100%;
    font-family: lucida; }

这是html -

<html>

<head>

<link rel="stylesheet" type="text/css" href="test.css"/>

</head>

<body>

Testing Font Face

</body>

</html>

而且它不起作用,啊 - 请帮助。

4

2 回答 2

1

我有三个建议要检查:

这是因为已经有一个名为“lucida”的字体;您的 CSS 中似乎有智能引号,而不是简单的撇号;您没有将“Testing Font Face”放在标签中(除了正文)。

于 2013-06-10T11:50:27.737 回答
0

尝试将 ' ' 替换为 ' ' 为您的 uri 字体。

于 2013-06-10T11:52:05.940 回答