fa-fw类的目的是什么? [英] What is the purpose of the `fa-fw` class?

查看:247
本文介绍了fa-fw类的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在fontawesome网站上浏览示例时,我注意到一些使用类fa-fw的情况. .例如:

Looking through the examples on the fontawesome website, I notice a few make use of the class fa-fw. For example:

<i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i>

我尝试过使用它,也没有使用它,我看不出任何明显的区别.

I have tried with and without it and I cannot see any notable difference.

fa-fw类的目的是什么?

推荐答案

固定宽度图标

我已在Chrome中打开示例页面,在 fw-sample 并删除了fw -class.这弄乱了图标的对齐方式-也是fw的目的:确保图标正确对齐:-)

Fixed Width Icons

I've opened the sample page in Chrome, opened inspector on the "Library"-Element of the fw-sample and removed the fw-class. This messes up the icon-alignment - and that is also mentioned as the purpose of fw: ensuring proper alignment of the icons :-)

这篇关于fa-fw类的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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