项目
在 GitHub 查看
picturepan2/fileicon.css
关于
Fileicon.css:可自定义的纯 CSS 文件图标。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README_CN.md
原文语言: English Document
介绍
文件类型图标的纯 CSS 版本。可以不用图片来创建文件图标。(例如:doc, pdf, png, zip 等等)。
查看 DEMO
使用
<div class="file-icon file-icon-xl" data-type="doc"></div>
显示为:

类型
使用 data-type 来定义文件类型,已经定义了一些:
- doc, docx
- xls, xlsx
- ppt, pptx
- zip
尺寸
使用 file-icon-xx 来使用尺寸,支持:
- xs (12x16)
- sm (18x24)
- 默认 (24x32)
- lg (48x64)
- xl (120x160)
自定义
如果要定义自己的类型,只需要:
.file-icon[data-type=custom] {
background: #38A240;
}
谁在用
- PUBU.im - https://pubu.im
License
Copyright (c) 2014-2015 Picturepan2. MIT Licensed, see LICENSE for details.
探索相关项目
加载中…