1. Markdown 语法
1.1 文字样式
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <u > 下划线演示</u > 文字**加粗** 演示 文字*斜体* 演示 文本`高亮` 演示 文本~~删除~~线演示 <font size = 5 > 5号字</font > <font face ="黑体" > 黑体</font > <font color =green > 绿色</font > <table > <tr > <td bgcolor =MistyRose > 这里的背景色是:MistyRosen,此处输入任意想输入的内容</td > </tr > </table >
下划线演示
文字加粗 演示
文字斜体 演示
文本高亮演示
文本删除 线演示
5号字
黑体
绿色
这里的背景色是:MistyRosen,此处输入任意想输入的内容
1.2 引用
1 2 3 4 5 6 7 > 北京大学 > > 中山大学 > > 软件工程学院 > > 大气科学学院 > > ...
北京大学
中山大学
软件工程学院
大气科学学院
…
1.3 列表 (*, +, -)
注意后面有空格。
1.3.1 有序列表
1.3.2 无序列表
1 2 3 4 5 6 7 8 9 10 11 * C++* Python* ...+ C+++ Python+ ...- C++- Python- ...
1.4 代码块
1 2 3 4 5 \```shell # VSCode 终端 hexo g; hexo s git push \```
1 2 3 # VSCode 终端 hexo g; hexo s git push
1.5 分隔线
1.6 图片
1 
1.7 表格
1 2 3 4 5 | 项目标号 | 资金 | 备注 | | :-: | :-: | :-: | | 1 | 100,000 | 无 | | 2 | 200,000 | 无 | | 3 | 300,600 | 重要 |
项目标号
资金
备注
1
100,000
无
2
200,000
无
3
300,600
重要
1.8 公式
1 2 3 $$ \Gamma(z)=\int_{0}^{\infty}t^{z-1}e^{-t}\mathrm{d}t $$
$$
\Gamma(z)=\int_{0}^{\infty}t^{z-1}e^{-t}\mathrm{d}t
$$
2. 外挂标签
注意: (此外挂非彼外挂,是插件的意思)该部分内容仅 Hexo + Butterfly 内可用;用于更高级的渲染效果。
2.1 行内文本样式 text
1 2 3 4 5 6 {% u 文本内容 %} {% emp 文本内容 %} {% wavy 文本内容 %} {% del 文本内容 %} {% kbd 文本内容 %} {% psw 文本内容 %}
1 2 3 4 5 6 1. 带 {% u 下划线 %} 的文本2. 带 {% emp 着重号 %} 的文本3. 带 {% wavy 波浪线 %} 的文本4. 带 {% del 删除线 %} 的文本5. 键盘样式的文本:{% kbd command %} + {% kbd D %}6. 密码样式的文本:{% psw 这里没有验证码 %}
带 下划线 的文本
带 着重号 的文本
带 波浪线 的文本
带 删除线 的文本
键盘样式的文本:command + D
密码样式的文本:这里没有验证码
2.2 行内文本 span
1 {% span 样式参数 (参数以空格划分), 文本内容 %}
字体: logo, code
颜色: red, yellow, green, cyan, blue, gray
大小: small, h4, h3, h2, h1, large, huge, ultra
对齐方向: left, center, right
1 2 3 4 5 6 - 彩色文字在一段话中方便插入各种颜色的标签,包括:{% span red, 红色 %}、{% span yellow, 黄色 %}、{% span green, 绿色 %}、{% span cyan, 青色 %}、{% span blue, 蓝色 %}、{% span gray, 灰色 %}。 - 超大号文字文档「开始」页面中的标题部分就是超大号文字。 {% span center logo large, Volantis %} {% span center small, A Wonderful Theme for Hexo %}
彩色文字
在一段话中方便插入各种颜色的标签,包括:红色 、黄色 、绿色 、青色 、蓝色 、灰色 。
超大号文字
文档「开始」页面中的标题部分就是超大号文字。
Volantis
A Wonderful Theme for Hexo
2.3 段落文本 p
1 2 {% p 样式参数 (参数以空格划分), 文本内容 %}
字体: logo, code
颜色: red, yellow, green, cyan, blue, gray
大小: small, h4, h3, h2, h1, large, huge, ultra
对齐方向: left, center, right
1 2 3 4 5 6 7 - 彩色文字在一段话中方便插入各种颜色的标签,包括:{% p red, 红色 %} {% p yellow, 黄色 %} {% p green, 绿色 %} {% p cyan, 青色 %} {% p blue, 蓝色 %} {% p gray, 灰色 %} - 超大号文字文档「开始」页面中的标题部分就是超大号文字。 {% p center logo large, Volantis %} {% p center small, A Wonderful Theme for Hexo %}
彩色文字
在一段话中方便插入各种颜色的标签,包括:红色
黄色
绿色
青色
蓝色
灰色
超大号文字
文档「开始」页面中的标题部分就是超大号文字。
Volantis
A Wonderful Theme for Hexo
2.4 引用 note
1 2 3 4 5 6 7 8 9 10 11 12 note: # Note tag style values: # - simple bs-callout old alert style. Default. # - modern bs-callout new (v2-v3) alert style. # - flat flat callout style with background, like on Mozilla or StackOverflow. # - disabled disable all CSS styles import of note tag. style: simple icons: false border_radius: 3 # Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6). # Offset also applied to label tag variables. This option can work with disabled note tag. light_ bg_offset: 0
1 2 3 4 5 6 7 8 # 自带 icon {% note [class] [no-icon] [style] %} Any content (support inline tags too.io). {% endnote %} # 外部 icon {% note [color] [icon] [style] %} Any content (support inline tags too.io). {% endnote %}
1. 自带 icon
参数
用法
class
【可选】标识,不同的标识有不同的配色 (default, primary, success, info, warning, danger)
no-icon
【可选】不显示 icon
style
【可选】可以覆盖配置中的 style (simple, modern, flat, disabled)
2. 外部 icon
参数
用法
class
【可选】标识,不同的标识有不同的配色 (default, blue, pink, red, purple, orange, green)
no-icon
【可选】可配置自定义 icon (只支持 fontawesome 图标,也可以配置 no-icon)
style
【可选】可以覆盖配置中的 style (simple, modern, flat, disabled)
1. 自带 icon
1. simple 样式
1 2 3 4 5 6 7 8 9 10 11 12 13 {% note simple %}默认 提示块标签{% endnote %} {% note default simple %}default 提示块标签{% endnote %} {% note primary simple %}primary 提示块标签{% endnote %} {% note success simple %}success 提示块标签{% endnote %} {% note info simple %}info 提示块标签{% endnote %} {% note warning simple %}warning 提示块标签{% endnote %} {% note danger simple %}danger 提示块标签{% endnote %}
2. modern 样式
1 2 3 4 5 6 7 8 9 10 11 12 13 {% note modern %}默认 提示块标签{% endnote %} {% note default modern %}default 提示块标签{% endnote %} {% note primary modern %}primary 提示块标签{% endnote %} {% note success modern %}success 提示块标签{% endnote %} {% note info modern %}info 提示块标签{% endnote %} {% note warning modern %}warning 提示块标签{% endnote %} {% note danger modern %}danger 提示块标签{% endnote %}
3. flat 样式
1 2 3 4 5 6 7 8 9 10 11 12 13 {% note flat %}默认 提示块标签{% endnote %} {% note default flat %}default 提示块标签{% endnote %} {% note primary flat %}primary 提示块标签{% endnote %} {% note success flat %}success 提示块标签{% endnote %} {% note info flat %}info 提示块标签{% endnote %} {% note warning flat %}warning 提示块标签{% endnote %} {% note danger flat %}danger 提示块标签{% endnote %}
4. disabled 样式
1 2 3 4 5 6 7 8 9 10 11 12 13 {% note disabled %}默认 提示块标签{% endnote %} {% note default disabled %}default 提示块标签{% endnote %} {% note primary disabled %}primary 提示块标签{% endnote %} {% note success disabled %}success 提示块标签{% endnote %} {% note info disabled %}info 提示块标签{% endnote %} {% note warning disabled %}warning 提示块标签{% endnote %} {% note danger disabled %}danger 提示块标签{% endnote %}
5. no-icon 样式
1 2 3 4 5 6 7 8 9 10 11 12 13 {% note no-icon %}默认 提示块标签{% endnote %} {% note default no-icon %}default 提示块标签{% endnote %} {% note primary no-icon %}primary 提示块标签{% endnote %} {% note success no-icon %}success 提示块标签{% endnote %} {% note info no-icon %}info 提示块标签{% endnote %} {% note warning no-icon %}warning 提示块标签{% endnote %} {% note danger no-icon %}danger 提示块标签{% endnote %}
2. 外部 icon
1. simple 样式
1 2 3 4 5 6 7 8 9 10 11 {% note 'fab fa-cc-visa' simple %}你是刷 Visa 还是 UnionPay{% endnote %} {% note blue 'fas fa-bullhorn' simple %}你要先去挖最低等级的秘银{% endnote %} {% note pink 'fas fa-car-crash' simple %}小心开车 安全至上{% endnote %} {% note red 'fas fa-fan' simple%}这是三片呢?还是四片?{% endnote %} {% note orange 'fas fa-battery-half' simple %}你是刷 Visa 还是 UnionPay{% endnote %} {% note green 'fab fa-internet-explorer' simple %}前端最讨厌的浏览器{% endnote %}
2. modern 样式
1 2 3 4 5 6 7 8 9 10 11 {% note 'fab fa-cc-visa' modern %}你是刷 Visa 还是 UnionPay{% endnote %} {% note blue 'fas fa-bullhorn' modern %}你要先去挖最低等级的秘银{% endnote %} {% note pink 'fas fa-car-crash' modern %}小心开车 安全至上{% endnote %} {% note red 'fas fa-fan' modern%}这是三片呢?还是四片?{% endnote %} {% note orange 'fas fa-battery-half' modern %}你是刷 Visa 还是 UnionPay{% endnote %} {% note green 'fab fa-internet-explorer' modern %}前端最讨厌的浏览器{% endnote %}
3. flat 样式
1 2 3 4 5 6 7 8 9 10 11 {% note 'fab fa-cc-visa' flat %}你是刷 Visa 还是 UnionPay{% endnote %} {% note blue 'fas fa-bullhorn' flat %}你要先去挖最低等级的秘银{% endnote %} {% note pink 'fas fa-car-crash' flat %}小心开车 安全至上{% endnote %} {% note red 'fas fa-fan' flat%}这是三片呢?还是四片?{% endnote %} {% note orange 'fas fa-battery-half' flat %}你是刷 Visa 还是 UnionPay{% endnote %} {% note green 'fab fa-internet-explorer' flat %}前端最讨厌的浏览器{% endnote %}
4.disabled样式
1 2 3 4 5 6 7 8 9 10 11 {% note 'fab fa-cc-visa' disabled %}你是刷 Visa 还是 UnionPay{% endnote %} {% note blue 'fas fa-bullhorn' disabled %}你要先去挖最低等级的秘银{% endnote %} {% note pink 'fas fa-car-crash' disabled %}小心开车 安全至上{% endnote %} {% note red 'fas fa-fan' disabled %}这是三片呢?还是四片?{% endnote %} {% note orange 'fas fa-battery-half' disabled %}你是刷 Visa 还是 UnionPay{% endnote %} {% note green 'fab fa-internet-explorer' disabled %}前端最讨厌的浏览器{% endnote %}
5. no-icon 样式
1 2 3 4 5 6 7 8 9 10 11 {% note no-icon %}你是刷 Visa 还是 UnionPay{% endnote %} {% note blue no-icon %}你要先去挖最低等级的秘银{% endnote %} {% note pink no-icon %}小心开车 安全至上{% endnote %} {% note red no-icon %}这是三片呢?还是四片?{% endnote %} {% note orange no-icon %}你是刷 Visa 还是 UnionPay{% endnote %} {% note green no-icon %}前端最讨厌的浏览器{% endnote %}
1. 自带 icon
1.simple 样式
2. modern 样式
3. flat 样式
4. disabled 样式
5. no-icon 样式
2. 外部 icon
1. simple 样式
2. modern 样式
3. flat 样式
4. disabled 样式
5. no-icon 样式
2.5 上标标签 tip
1 {% tip [参数,可选] %}文本内容{% endtip %}
样式: success, error, warning, bolt, ban, home, sync, cogs, key, bell
自定义图标: 支持 fontawesome
1 2 3 4 5 6 7 8 9 10 11 12 13 {% tip %}default{% endtip %} {% tip info %}info{% endtip %} {% tip success %}success{% endtip %} {% tip error %}error{% endtip %} {% tip warning %}warning{% endtip %} {% tip bolt %}bolt{% endtip %} {% tip ban %}ban{% endtip %} {% tip home %}home{% endtip %} {% tip sync %}sync{% endtip %} {% tip cogs %}cogs{% endtip %} {% tip key %}key{% endtip %} {% tip bell %}bell{% endtip %} {% tip fa-atom %}自定义 font awesome 图标{% endtip %}
2.6 动态标签 anima
1 {% tip [参数,可选] %}文本内容{% endtip %}
将所需的 CSS 类添加到图标(或 DOM 中的任何元素)。
对于父级悬停样式,需要给目标元素添加指定 CSS 类,同时还要给目标元素的父级元素添加 CSS 类 faa-parent animated-hover。(详情见示例及示例源码)
You can regulate the speed of the animation by adding the CSS class or . faa-fastfaa-slow
可以通过给目标元素添加 CSS 类 faa-fast 或 faa-slow 来控制动画快慢。
1. On DOM load(当页面加载时显示动画)
1 2 {% tip warning faa-horizontal animated %}warning{% endtip %} {% tip ban faa-flash animated %}ban{% endtip %}
2. 调整动画速度
1 2 {% tip warning faa-horizontal animated faa-fast %}warning{% endtip %} {% tip ban faa-flash animated faa-slow %}ban{% endtip %}
3. On hover(当鼠标悬停时显示动画)
1 2 {% tip warning faa-horizontal animated-hover %}warning{% endtip %} {% tip ban faa-flash animated-hover %}ban{% endtip %}
4. On parent hover(当鼠标悬停在父级元素时显示动画)
1 2 {% tip warning faa-parent animated-hover %}<p class ="faa-horizontal" > warning</p > {% endtip %} {% tip ban faa-parent animated-hover %}<p class ="faa-flash" > ban</p > {% endtip %}
1. On DOM load(当页面加载时显示动画)
2. 调整动画速度
3. On hover(当鼠标悬停时显示动画)
4. On parent hover(当鼠标悬停在父级元素时显示动画)
2.7 复选列表 checkbox
1 {% checkbox 样式参数(可选), 文本(支持简单md) %}
样式:plus, minus, times
颜色:red, yellow, green, cyan, blue, gray
选中状态:checked
1 2 3 4 5 6 7 8 9 10 {% checkbox 纯文本测试 %} {% checkbox checked, 支持简单的 [markdown ](https://markdown.com.cn ) 语法 %} {% checkbox red, 支持自定义颜色 %} {% checkbox green checked, 绿色 + 默认选中 %} {% checkbox yellow checked, 黄色 + 默认选中 %} {% checkbox cyan checked, 青色 + 默认选中 %} {% checkbox blue checked, 蓝色 + 默认选中 %} {% checkbox plus green checked, 增加 %} {% checkbox minus yellow checked, 减少 %} {% checkbox times red checked, 叉 %}
2.8 单选列表 radio
1 {% radio 样式参数(可选), 文本(支持简单 md) %}
颜色:red, yellow, green, cyan, blue, gray
选中状态:checked
1 2 3 4 5 6 7 {% radio 纯文本测试 %} {% radio checked, 支持简单的 [markdown ](https://markdown.com.cn ) 语法 %} {% radio red, 支持自定义颜色 %} {% radio green, 绿色 %} {% radio yellow, 黄色 %} {% radio cyan, 青色 %} {% radio blue, 蓝色 %}
2.9 时间轴 timeline
1 2 3 4 5 6 7 8 {% timeline 时间线标题(可选)[,color] %} <!-- timeline 时间节点(标题) --> 正文内容 <!-- endtimeline --> <!-- timeline 时间节点(标题) --> 正文内容 <!-- endtimeline --> {% endtimeline %}
title:标题 / 时间线
color:timeline 颜色:default(留空) / blue / pink / red / purple / orange / green
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 {% timeline 时间轴样式, blue %} <!-- timeline 2020-07-24 [2.6.6 -> 3.0.0 ](https://github.com/volantis-x/hexo-theme-volantis/releases/tag/3.0.0 ) --> 1. 如果有 `hexo-lazyload-image` 插件,需要删除并重新安装最新版本,设置 `lazyload.isSPA: true` 。2. 2.x 版本的 css 和 js 不适用于 3.x 版本,如果使用了 `use_cdn: true` 则需要删除。3. 2.x 版本的 fancybox 标签在 3.x 版本中被重命名为 gallery 。4. 2.x 版本的置顶 `top: true` 改为了 `pin: true` ,并且同样适用于 `layout: page` 的页面。5. 如果使用了 `hexo-offline` 插件,建议卸载,3.0 版本默认开启了 pjax 服务。<!-- endtimeline --> <!-- timeline 2020-05-15 [2.6.3 -> 2.6.6 ](https://github.com/volantis-x/hexo-theme-volantis/releases/tag/2.6.6 ) --> 不需要额外处理。 <!-- endtimeline --> <!-- timeline 2020-04-20 [2.6.2 -> 2.6.3 ](https://github.com/volantis-x/hexo-theme-volantis/releases/tag/2.6.3 ) --> 1. 全局搜索 `seotitle` 并替换为 `seo_title` 。2. group 组件的索引规则有变,使用 group 组件的文章内,`group: group_name` 对应的组件名必须是 `group_name` 。2. group 组件的列表名优先显示文章的 `short_title` 其次是 `title` 。<!-- endtimeline --> {% endtimeline %}
如果有 hexo-lazyload-image 插件,需要删除并重新安装最新版本,设置 lazyload.isSPA: true。
2.x 版本的 css 和 js 不适用于 3.x 版本,如果使用了 use_cdn: true 则需要删除。
2.x 版本的 fancybox 标签在 3.x 版本中被重命名为 gallery 。
2.x 版本的置顶 top: true 改为了 pin: true,并且同样适用于 layout: page 的页面。
如果使用了 hexo-offline 插件,建议卸载,3.0 版本默认开启了 pjax 服务。
全局搜索 seotitle 并替换为 seo_title。
group 组件的索引规则有变,使用 group 组件的文章内,group: group_name 对应的组件名必须是 group_name。
group 组件的列表名优先显示文章的 short_title 其次是 title。
2.10 github 徽标 ghbdage
1 {% bdage [right], [left], [logo] || [color], [link], [title] || [option] %}
left:徽标左边的信息,必选参数。
right: 徽标右边的信息,必选参数,
logo:徽标图标,图标名称详见 simpleicons ,可选参数。
color:徽标右边的颜色,可选参数。
link:指向的链接,可选参数。
title:徽标的额外信息,可选参数。主要用于优化 SEO,但 object 标签不会像 a 标签一样在鼠标悬停显示 title 信息。
option:自定义参数,支持 shields.io 的全部 API 参数支持,具体参数可以参看上文中的拓展写法示例。形式为 name1=value2&name2=value2。
1. 基本参数,定义徽标左右文字和图标
1 2 {% bdage Theme, Butterfly %} {% bdage Frame, Hexo, hexo %}
2. 信息参数,定义徽标右侧内容背景色,指向链接
1 2 3 {% bdage CDN, JsDelivr, jsDelivr || abcdef, https://metroui.org.ua/index.html, 本站使用JsDelivr 为静态资源提供 CDN 加速 %} // 如果是跨顺序省略可选参数,仍然需要写个逗号,用作分割 {% bdage Source, GitHub, GitHub ||, https://github.com %}
3. 拓展参数,支持 shields 的 API 的全部参数内容
1 2 3 {% bdage Hosted, Vercel, Vercel || brightgreen, https://vercel.com, 本站采用双线部署,默认线路托管于 Vercel || style=social&logoWidth=20 %} // 如果是跨顺序省略可选参数组,仍然需要写双竖线 || 用作分割 {% bdage Hosted, Vercel, Vercel || || style=social&logoWidth=20&logoColor=violet %}
1. 基本参数,定义徽标左右文字和图标
2. 信息参数,定义徽标右侧内容背景色,指向链接
3. 拓展参数,支持 shields 的 API 的全部参数内容
2.11 分栏 tab
1 2 3 4 5 {% tabs Unique name, [index] %} <!-- tab [Tab caption] [@icon] --> Any content (support inline tags too). <!-- endtab --> {% endtabs %}
Unique name:
选项卡块标签的唯一名称,不带逗号。
将在 #id 中用作每个标签及其索引号的前缀。
如果名称中包含空格,则对于生成 #id,所有空格将由破折号代替。
仅当前帖子/页面的 URL 必须是唯一的!
[index]:
活动选项卡的索引号。
如果未指定,将选择第一个标签 (1)。
如果index为 -1,则不会选择任何选项卡。
可选参数。
[Tab caption]:
当前选项卡的标题。
如果未指定标题,则带有制表符索引后缀的唯一名称将用作制表符的标题。
如果未指定标题,但指定了图标,则标题将为空。
可选参数。
[@icon]:
FontAwesome 图标名称(全名,看起来像 “fas fa-font”)
可以指定带空格或不带空格;
例如 ’Tab caption @icon’ 和 ‘Tab caption@icon’.
可选参数。
1.Demo 1 - 预设选择第一个【默认】
1 2 3 4 5 6 7 8 9 10 11 12 13 {% tabs test1 %} <!-- tab --> **This is Tab 1.** <!-- endtab --> <!-- tab --> **This is Tab 2.** <!-- endtab --> <!-- tab --> **This is Tab 3.** <!-- endtab --> {% endtabs %}
2.Demo 2 - 预设选择 tabs
1 2 3 4 5 6 7 8 9 10 11 12 13 {% tabs test2, 3 %} <!-- tab --> **This is Tab 1.** <!-- endtab --> <!-- tab --> **This is Tab 2.** <!-- endtab --> <!-- tab --> **This is Tab 3.** <!-- endtab --> {% endtabs %}
3.Demo 3 - 没有预设值
1 2 3 4 5 6 7 8 9 10 11 12 13 {% tabs test3, -1 %} <!-- tab --> **This is Tab 1.** <!-- endtab --> <!-- tab --> **This is Tab 2.** <!-- endtab --> <!-- tab --> **This is Tab 3.** <!-- endtab --> {% endtabs %}
4.Demo 4 - 自定义 Tab 名 + icon 和 Tab 名
1 2 3 4 5 6 7 8 9 {% tabs test4 %} <!-- tab 第一个 Tab --> **tab 名字为第一个 Tab** <!-- endtab --> <!-- tab 炸弹@fas fa-bomb --> **名字 + icon** <!-- endtab --> {% endtabs %}
1.Demo 1 - 预设选择第一个【默认】
2.Demo 2 - 预设选择 tabs
3.Demo 3 - 没有预设值
4.Demo 4 - 自定义 Tab 名 + icon 和 Tab 名
2.12 诗词标签 poem
title:诗词标题
author:作者,可以不写
1 2 3 4 5 6 7 8 9 10 11 12 {% poem 水调歌头, 苏轼 %} 丙辰中秋,欢饮达旦,大醉,作此篇,兼怀子由。 明月几时有?把酒问青天。 不知天上宫阙,今夕是何年? 我欲乘风归去,又恐琼楼玉宇,高处不胜寒。 起舞弄清影,何似在人间? 转朱阁,低绮户,照无眠。 不应有恨,何事长向别时圆? 人有悲欢离合,月有阴晴圆缺,此事古难全。 但愿人长久,千里共婵娟。 {% endpoem %}
水调歌头
苏轼
丙辰中秋,欢饮达旦,大醉,作此篇,兼怀子由。
明月几时有?把酒问青天。
不知天上宫阙,今夕是何年?
我欲乘风归去,又恐琼楼玉宇,高处不胜寒。
起舞弄清影,何似在人间?
转朱阁,低绮户,照无眠。
不应有恨,何事长向别时圆?
人有悲欢离合,月有阴晴圆缺,此事古难全。
但愿人长久,千里共婵娟。
2.13 阿里图标 icon
1 {% icon [icon-xxxx], [font-size] %}
icon-xxxx:表示图标 font-class,可以在阿里矢量图标库项目的 font-class 引用方案内查询并复制。
font-size:表示图标大小,单位为 em(直接填写数字)。图标大小默认值为 1em。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 {% icon icon-rat_zi %}{% icon icon-rat, 2 %} {% icon icon-ox_ chou, 3 %}{% icon icon-ox, 4 %}{% icon icon-tiger_yin, 5 %}{% icon icon-tiger, 6 %} {% icon icon-rabbit_ mao, 1 %}{% icon icon-rabbit, 2 %}{% icon icon-dragon_chen, 3 %}{% icon icon-dragon, 4 %} {% icon icon-snake_ si, 5 %}{% icon icon-snake, 6 %}{% icon icon-horse_wu %}{% icon icon-horse, 2 %} {% icon icon-goat_ wei, 3 %}{% icon icon-goat, 4 %}{% icon icon-monkey_shen, 5 %}{% icon icon-monkey, 6 %} {% icon icon-rooster_ you %}{% icon icon-rooster, 2 %}{% icon icon-dog_xu, 3 %}{% icon icon-dog, 4 %} {% icon icon-boar_ hai, 5 %}{% icon icon-boar, 6 %}
2.14 进度条 progress
1 {% progress [width] [color] [text] %}
width:0 到 100 的阿拉伯数字
color:颜色,取值有red, yellow, green, cyan, blue, gray
text:进度条上的文字内容
1 2 3 4 5 6 {% progress 10 red 进度条样式预览 %} {% progress 30 yellow 进度条样式预览 %} {% progress 50 green 进度条样式预览 %} {% progress 70 cyan 进度条样式预览 %} {% progress 90 blue 进度条样式预览 %} {% progress 100 gray 进度条样式预览 %}