如何设置 Font Awesome Icons 的图标颜色、大小和阴影样式 [英] How to style icon color, size, and shadow of Font Awesome Icons

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

问题描述

我如何设计 Font Awesome 的图标?

例如,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;
}

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

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