alexdbsas / fffeather
简单的feather图标集成
v1.0.3
2024-02-14 18:54 UTC
Requires
- bcosca/fatfree-core: 3.*
README
用于Fat-free-framework的feather-icons扩展
使用方法
非常简单
index.php
require 'vendor/autoload.php'; new \alexdbsas\FFfeather;
template.html
<feather type="activity">
其中 "type" 是图标名称。别忘了先设置CSS(否则图标将不可见)
.feather { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
如文档所述
为什么要使用精灵图呢?
因为它是最资源高效的方法。浏览器只缓存一个文件,很少会进行后续请求。减少流量,减少请求,节省时间。
付费工作
我 接受订单。