模板:Fa

来自百问网嵌入式Linux wiki
Wiki讨论 | 贡献2020年9月4日 (五) 11:03的版本 (创建页面,内容为“<onlyinclude><i class="fa fa-fw fa-{{{icon|}}}{{{i|}}} {{#if: {{{size|}}} |fa-{{{size}}}|}} {{#switch: {{{spin|}}} | true = fa-spin | spin = fa-spin | pulse = fa-pul…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Font Awesome

基础用法


{{fa|icon=star}}



{{fa|i=star}}

大小

{{fa|icon=camera-retro|size=lg}}


{{fa|icon=camera-retro|size=2x}}


{{fa|icon=camera-retro|size=3x}}


{{fa|icon=camera-retro|size=4x}}


{{fa|icon=camera-retro|size=5x}}

旋转

{{fa|icon=spinner|size=3x|spin=true}}


{{fa|icon=spinner|size=3x|spin=pulse}}

边框

{{fa|icon=quote-left|size=3x|border=true}}

浮动

{{fa|icon=quote-left|size=3x|border=true|float=left}}


{{fa|icon=quote-right|size=3x|border=true|float=right}}

<templatedata> { "params": { "icon": { "aliases": [ "i" ], "label": "图标名称", "description": "FontAwesome的图标名称(不用fa-),可以在 http://fontawesome.com.cn 查找到", "example": "flag", "type": "line", "required": true }, "size": { "label": "图标大小", "description": "可用值:lg, 2x, 3x, 4x, 5x", "type": "wiki-page-name" }, "spin": { "label": "是否旋转", "description": "spin: 旋转, pulse: 8位旋转", "type": "line" }, "border": { "label": "边框", "description": "是否位图标添加边框", "type": "boolean", "default": "0" }, "float": { "label": "浮动", "description": "left: 浮动于左侧, right: 浮动于右侧", "type": "line" } }, "format": "inline", "description": "为页面添加FontAwesome图标" } </templatedata>