如何风格的图标颜色,大小和阴影的字体Awesome图标 [英] How to style icon color, size, and shadow of Font Awesome Icons

查看:122
本文介绍了如何风格的图标颜色,大小和阴影的字体Awesome图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何通过Font Awesome的图标调整图标的颜色,大小和阴影, a>?

How could I style the color, size and shadow of icons from Font Awesome's Icons?

例如,Font Awesome的网站将显示一些图标为白色,一些为红色,但不会显示 CSS 如何以这种方式样式...

For example, Font Awesome's site will show some icons in white and some in red but won't show the CSS for how to style them that way ...

推荐答案

由于它们只是字体,因此您应该能够将它们设置为字体:

Given that they're simply fonts, then you should be able to style them as fonts:

#elementID {
    color: #fff;
    text-shadow: 1px 1px 1px #ccc;
    font-size: 1.5em;
}

这篇关于如何风格的图标颜色,大小和阴影的字体Awesome图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆