-2

我几乎把自己弄湿了,希望能得到这个工作!

我已经设置了 .ttf 文件的位置 - 但它似乎没有找到它。

我设置的位置错误吗?

我是否错误地描述了字体?

<!DOCTYPE html>
<html>
<body>

<style>

@font-face
{
font-family: Baskerville;
src: local('J:\Internet\Paul\Baskerville test\IT597___.ttf');
}
p { font-family: baskerville, serif; }
</style>

<h1 class="baskerville">This is written in ITC Baskerville</h1>

<p>Please note, that this is not written in Baskerville, but the word <span class="baskerville">Waterman</span> here is.</p>


<p><a href="http://www.w3.org/TR/css3-fonts/#font-face-rule" target="blank">Read this</a> for the W3C specifications on the "@font face" declaration which I've used to do this.</p>
</body>
</html>
4

1 回答 1

1

http://www.fontsquirrel.com/tools/webfont-generator使用这个生成器来生成你的字体。它还将为字体提供正确的 css。

我在您的代码中看到的错误之一是您的 font-family 被定义为 Baskerville 并且 p 具有 font-family baskerville (大写)

于 2013-02-22T10:29:03.293 回答