将Font Awesome 集成到 Bootstrap 非常容易,还可以被单独使用。
使用这种方式将 Font Awesome 集成到默认的 Bootstrap CSS中。
字体路径是相对于你的 CSS 目录的。
<head>
部分,引入 font-awesome.min.css 文件。修改Bootstrap的LESS文件以集成 Font Awesome。
@import "sprites.less";
替换为 @import "font-awesome.less";
@FontAwesomePath
变量,将其值替换为指向字体文件的正确路径。字体路径相对于存放编译之后的CSS文件的目录。
我也从未使用过SASS或SCSS,如果源码包中的SCSS或SASS文件有问题的话请通知我。
Font Awesome works just as well without Twitter Bootstrap.
Font Awesome supports IE7. If you need it, you have my condolences.
<head>
of your html, reference the location to your font-awesome-ie7.min.css.下面的案例大部分都是重用 Bootstrap 文档中的案例。
Use Font Awesome icons in:
Place Font Awesome icons just about anywhere with the <i>
tag.
通过给图标设置 icon-large
、icon-2x
、 icon-3x
或 icon-4x
样式,可以让图标相对于它所在的容器变得更大。
通过应用 icon-large
(增大 33%), icon-2x
, icon-3x
或 icon-4x
样式让图标变得更大。
icon-camera-retro
icon-camera-retro
icon-camera-retro
icon-camera-retro
Use the icon-spin
class to get any icon to rotate. Works best with icon-spinner
and icon-refresh
.
CSS3 animations aren‘t supported in IE7 - IE9.
Use icon-border
and pull-right
or pull-left
for easy pull quotes or article graphics.
Font Awesome 图标能够很好的应用于按钮组件中。将图标设置的再大也可以,Bootstrap中的
pull-right
、 pull-left
和 icon-spin
样式都可以应用到图标上。
Easily replace individual bullets.
Use Font Awesome icons in navigation to provide helpful visual cues.
Want to help make Font Awesome even more awesome? Contribute back to the Font Awesome community by designing new pictograms for the set.
If selected, you‘ll retain the CC-BY license to your pictogram and get attribution right here on the Font Awesome site.
[Font Awesome] [Icon Contribution] icon-name
and attach your PDF file. If your icon makes it into Font Awesome (I‘m keeping a very tight reign on quality), I‘ll ask what contact info you‘d like to use for attribution.下面是将来版本更新的计划。
Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome
.I‘m the lead product designer at Kyruus. I wake up every single day excited about my job. Why? Kyruus is going to change healthcare. No exaggeration.
Kyruus is a well-funded, big data healthcare startup in Boston. We believe that the right data at the right time can help doctors make better decisions. We believe data can save lives.
What I love about Kyruus:Kyruus needs good people. Designers, app developers, big data masters, & interns that get real responsibility. Come work with me.
Interested? Email me.Hopefully you think Font Awesome is awesome. I‘ve put hundreds of hours into the project to give back to the open source community. If you‘d like, here are some ways you can tell me thanks for all my hard work.
Contribute icons to make Font Awesome even awesome-er.
Contribute to a shiny new iMac for me to keep making great icons.
Or pick something straight from my wish list. Gift cards are great.
http://www.bootcss.com/p/font-awesome/
原文:http://www.cnblogs.com/caicaizi/p/5164850.html