1 打开网址http://cufon.shoqolate.com/generate/将本地字体上传。
![网页特殊字体,在网页中使用特殊字体](/Files/20114/5ce27b27-05a2-403c-91e8-5c56a47c069c.gif)
![网页特殊字体,在网页中使用特殊字体](/Files/20114/8ca16b82-da73-4d25-8e9a-b92cfe403a02.gif)
点击Let's do this 后会让你下载一个js文件.
2.然后再将另一个js文件下载下来
![网页特殊字体,在网页中使用特殊字体](/Files/20114/cda4b1ed-8746-4de3-8a70-1fcb0e165092.gif)
这样我们就有了两个js文件
![网页特殊字体,在网页中使用特殊字体](/Files/20114/b5c71400-bf03-4138-9b51-7591e833da15.gif)
3.测试html如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="cufon-yui.js"></script>
<script type="text/javascript" language="javascript" src="Jokerman_400.font.js"></script>
<style type="text/css">
*{
font-size:36px;
}
</style>
<script type="text/javascript">
Cufon.replace(".b");
</script>
</head>
<body>
<p class="b">
Aenean ut vulputate lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
</p>
<p>
Aenean ut vulputate lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
</p>
</body>
</html>
4.效果
![网页特殊字体,在网页中使用特殊字体](/Files/20114/603a0593-617a-468b-8b96-a2f18ea25a30.gif)
最新评论