Skip to content

图标 icon ​

用法 ​

传入图标名即可生成对应的 ZUI 图标。用 size 调整大小。

php
icon
(
    'resize',       // 等同于 set::name('resize')
    set::size('2x') // 使用 icon-2x 类,也可传整数像素值
);
html
<i class="icon icon-resize icon-2x"></i>

属性 ​

属性名类型默认值说明
namestring-图标名称
size'2x'|'3x'|'4x'|'5x'|int-图标大小