Font Awesome 文件类型图标:后缀提示与真实附件
覆盖文件类型类名和别名,区分图标、文件元数据与下载附件。
学完这一章,你能够
- 覆盖文件类型类名和别名,区分图标、文件元数据与下载附件。
- 覆盖文件类型类名和别名,区分图标、文件元数据与下载附件。
保留全部文件类别
通用文件、空心文件、文本、代码、图片、音视频、压缩包、PDF及Office类名都能在本例逐项切换。file-zip-o/file-archive-o、图片和视频的若干旧名称共享字形,应保留独立入口而不是删除别名。
图标只是提示,不能验证文件真实类型。后台附件应记录实际名称、大小、MIME、哈希及教程/章节关系;校验文件内容不应仅依赖扩展名。
下载与名称
每个下载链接应包含可理解的附件名、类型及必要的大小提示。选择一个PDF图标不会生成PDF文件;本章下载包是本站实例工程,不冒充原始素材附件。
完整类名、字体码位与别名
| 类名(4.7.0) | 私用区码位 | 同字形类名 | 使用条件 |
| fa-file | U+F15B | fa-file | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-archive-o | U+F1C6 | fa-file-zip-o / fa-file-archive-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-audio-o | U+F1C7 | fa-file-sound-o / fa-file-audio-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-code-o | U+F1C9 | fa-file-code-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-excel-o | U+F1C3 | fa-file-excel-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-image-o | U+F1C5 | fa-file-photo-o / fa-file-picture-o / fa-file-image-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-movie-o | U+F1C8 | fa-file-movie-o / fa-file-video-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-o | U+F016 | fa-file-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-pdf-o | U+F1C1 | fa-file-pdf-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-photo-o | U+F1C5 | fa-file-photo-o / fa-file-picture-o / fa-file-image-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-picture-o | U+F1C5 | fa-file-photo-o / fa-file-picture-o / fa-file-image-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-powerpoint-o | U+F1C4 | fa-file-powerpoint-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-text | U+F15C | fa-file-text | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-text-o | U+F0F6 | fa-file-text-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-video-o | U+F1C8 | fa-file-movie-o / fa-file-video-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-word-o | U+F1C2 | fa-file-word-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
| fa-file-zip-o | U+F1C6 | fa-file-zip-o / fa-file-archive-o | fa基础类与4.7.0字体同时加载;具体含义结合文字 |
本章独立核心源码与验证步骤
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- 所有本章类名有真实非空::before内容并使用已加载FontAwesome字体
- 选择器、逐项按钮、字号和颜色改变真实图标,搜索反馈准确且输入不执行为HTML
fa-file:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F15B,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-archive-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C6,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-audio-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C7,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-code-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C9,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-excel-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C3,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-image-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C5,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-movie-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C8,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F016,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-pdf-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C1,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-photo-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C5,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-picture-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C5,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-powerpoint-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C4,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-text:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F15C,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-text-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F0F6,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-video-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C8,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-word-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C2,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
fa-file-zip-o:单项图标与外观
展开查看收起
<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Font Awesome 文件类型图标:后缀提示与真实附件 | 蓝色天空网</title><link rel="stylesheet" href="vendor/css/font-awesome.css"><link rel="stylesheet" href="lab.css"></head><body data-chapter="fontawesome-icons-filetype"><header><a href="index.html">蓝色天空网 · mbsky.com · 本地学习实例</a></header><main><h1>Font Awesome 文件类型图标:后缀提示与真实附件</h1><p>固定Font Awesome4.7.0。本页仅查看图标,不执行付款、播放、编辑等业务。</p><section class="demo-box"><label>选择类名<select id="icon-choice"></select></label><label>字号<select id="size"><option>24</option><option>48</option><option>60</option></select>px</label><label>颜色<input id="color" type="color" value="#2563eb"></label><p><span id="selected-icon" aria-hidden="true"></span> <strong id="selected-name"></strong> <span id="point"></span></p><pre id="markup"></pre><p id="selection-status" role="status"></p></section><label>搜索类名<input id="search" type="search" autocomplete="off"></label><p id="search-status" role="status"></p><table><thead><tr><th>真实字形</th><th>类名</th><th>私用区码位</th><th>同字形类名</th><th>逐项查看</th></tr></thead><tbody id="icons"></tbody></table><p>码位及字体加载观察不等于所有图标的人工视觉、含义或辅助技术验收。</p><script type="module" src="gallery.js"></script></main></body></html>
查看独立实例 ↗ 在独立页面查看源码、运行环境与工程包
- ::before为U+F1C6,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
本章附件与实例包
常见错误与边界检查
- 只检查class而没有核对字体真实加载。
- 把图标、别名、业务状态或现代版本兼容性混为一谈。
技术规范与官方资料
练习与参考解答
查看参考解答
比较::before码位、实际字体加载、计算字号/颜色与文本名称;图标不实现相关业务,人工视觉和辅助技术另验。