简体   繁体   English

如何找到“真棒”图标的像素大小?

[英]How can I find the pixel size of a Font-Awesome icon?

I am n the process of creating a website, where I have several font-awesome icons. 我正在创建一个网站,其中有几个字体超赞的图标。 I now wish to create a ribbon background for each icon. 我现在希望为每个图标创建一个功能区背景。 How can I go about finding the correct pixel size of such font-awesome icon? 如何找到这种字体超赞图标的正确像素大小?

In Font-Awesome v 4.7.0 (the current release), the default font size is 14 px. 在Font-Awesome v 4.7.0(当前版本)中,默认字体大小为14 px。 You can find this in font-awesome.css line 16, or, using your browser's devtools to inspect an icon placed on a website. 您可以在font-awesome.css第16行中找到此文件,也可以使用浏览器的devtools检查放置在网站上的图标。 For each x level of increased size, this goes up by ems (aka, fa-2x is 2 ems, or 28px). 对于每x个增加的大小级别,此值增加ems(又名fa-2x为2 ems或28px)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM