<!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-text"><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>
本例需在 Edge156.0.4314.58;Font Awesome4.7.0,本地HTTP字体及程序化DOM交互 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程
运行环境:Edge156.0.4314.58;Font Awesome4.7.0,本地HTTP字体及程序化DOM交互
入口文件:projects/icon-lab/fontawesome-icons-text.html
预期结果与验证条件观察提示
- ::before为U+F1DC,实际加载FontAwesome
- 该类名的两个选择入口均有效;48/60px及红色实际生效
请结合实际环境逐项观察。
附件与关联工程包下载
课程关联工程包(登记关联17章) · 含当前章节或实例 · mbskycom202611a513.zip