2015-11-13 88 views
0

为什么我不能嵌入字体?嵌入打开式字体

的index.php

<!doctype html> 
<html>  
<head> 
    <meta charset="utf-8"/> 
    <title>Some Title</title> 
    <link href='img/fav.png' rel='icon'> 
    <link href="index.css" rel="stylesheet"> 
    </head> 

<body> 
<div id="logo01">Some Text</div> 
</body> 
</html> 

index.css

@font-face { 
    font-family: harrington-normal; 
    src: url("harrington-normal.otf") format("opentype"); 
} 
#logo01{ 
    font-family:harrington-normal; 
    font-size:5.9rem; 
    color:#ffffff; 
} 

#logo01不是哈灵顿字体!

index.php,index.cssharrington-normal.otf都在根文件夹内。 我正在使用Chrome。

控制台说:GET http://localhost/stenaljubavi.net16.net/up/harrington-normal.otf .....index.php:325

查看页面源 - 行325: <script src="jquery-2.1.4.min.js"></script>

任何想法?

回答