使用自定义字体
工具:ttf2eot
http://code.google.com/p/ttf2eot/wiki/Demo
工具:ttf2eot
http://code.google.com/p/ttf2eot/wiki/Demo
转换方法:ttf2eot.ext msyh.ttf msyh.eot
@font-face {
font-family: "msyh";
src: url("css/font/msyh.ttf") format("truetype");
}
</style>
<!--[if IE]>
<style>
@font-face {
font-family: "msyh";
src: url("css/font/msyh.eot");
}
</style>
<![endif]-->
<style>
*{
font-family:"msyh";
}
</style>
本文介绍如何利用ttf2eot工具将TrueType字体文件(.ttf)转换为适合网页使用的EOT格式(.eot),并提供了具体的转换命令及CSS样式示例,帮助开发者更好地在网页上应用自定义字体。
1022

被折叠的 条评论
为什么被折叠?



