软件大小:8.58M
软件语言:简体中文
软件授权:免费软件
软件类别:字体输入
软件等级:
更新时间:2023-12-09
官方网站:
应用平台:Win2003,WinXP,Vista,Win7,Win8
- 软件介绍
- 软件截图
- 下载地址
FontSpider是一款中文字体压缩器,让网页自由引入中文字体成为可能。字蛛通过分析本地 CSS 与 HTML 文件获取 WebFont 中没有使用的字符,并将这些字符数据从字体中删除以实现压缩,同时生成跨浏览器使用的格式。
【安装说明】
先安装好 NodeJS,然后执行:
npm install font-spider -g
在 CSS 中使用 WebFont:
/*声明 WebFont*/
@font-face {
font-family: 'pinghei';
src: url('../font/pinghei.eot');
src:
url('../font/pinghei.eot?#font-spider') format('embedded-opentype'),
url('../font/pinghei.woff') format('woff'),
url('../font/pinghei.ttf') format('truetype'),
url('../font/pinghei.svg') format('svg');
font-weight: normal;
font-style: normal;
}
/*使用选择器指定字体*/
.home h1, .demo > .test {
font-family: 'pinghei';
}
1. @font-face 中的 src 定义的 .ttf 文件必须存在,其余的格式将由工具自动生成
2. 开发阶段请使用相对路径的 CSS 与 WebFont
- 本类推荐
- 本类排行
- 热门软件
- 热门标签
Readiris Corporate 17(图片OCR文字识别工具) V17.2.9.0 破解版
人工智能AI深度伪原创工具 V1.0 官方版
ALKATIP输入法电脑版 V6.0 官方版
ZipRepair Pro(Zip修复工具) V4.2.0.1113 官方版
Gem for OneNote V40.1.1.258 中文免费版
Gem for OneNote(数字笔记珍宝) V40.1.1.258 官方最新版
ssuite NoteBook Editor(文本编辑器) V1.0 绿色版
大词库码表生成器 V1.0.0.0 绿色版
阿珊打字通 V17.1.0.1 官方版
智能h3输入法 V2013 最新免费版