[英]How to use the fontawesome correctly
I am new, and I had to create an account to help me.我是新手,我必须创建一个帐户来帮助我。
I have a forum, and I want to add a font-awesome icon to the range, but it does not describe or read it to me, I will leave images.我有一个论坛,我想在范围内添加一个很棒的字体图标,但它没有描述或读给我听,我会留下图像。 image 1
图 1
Code代码
.adm:before {
content: "\f0e7";
font-family: "Font Awesome 5 Free";
margin-right: 5px;
}
.adm {
background: #d6351c;
border-radius: 3px;
box-shadow: 0 1px 1px rgb(214, 53, 28), 0 0 2px rgb(214, 53, 28);
color: #fff;
display: inline-block;
font-size: 12px;
font-weight: 700;
letter-spacing: 6px;
margin-top: 2px;
padding: 4px 6px;
text-transform: uppercase;
}
#Add a unique CSS class name to the icon element you want to use. #为您要使用的图标元素添加一个唯一的 CSS class 名称。 #Set the font-family to “Font Awesome 5 Free” (For regular,solid icons) #Set the font-weight css property as 900 (For Solid), 400 (Regular or Brands), 300 #Set the content css property to the unicode value font awesome icon.
#将字体系列设置为“Font Awesome 5 Free”(对于常规、实心图标) #将字体粗细 css 属性设置为 900(对于实心)、400(常规或品牌)、300 #将内容 css 属性设置为unicode值字体真棒图标。 #And if required,add a common CSS class name for all icon elements, for example “font-awesome-icons” (This is to add your own CSS to the icons).
#如果需要,为所有图标元素添加一个通用的 CSS class 名称,例如“font-awesome-icons”(这是为图标添加您自己的 CSS)。
eg例如
<span class="font-awesome-icons point"></span> Login </li>.point::before { font-family: "Font Awesome 5 Brands"; font-weight: 400; content: "\f09a"; }
<span class="adm">Administrador</span><span class="fundador"> Fundador</span>
Hi!你好!
I have that in the name of the range so that I can identify the css, which I have as ".adm"我在范围的名称中有它,以便我可以识别 css,我将其命名为“.adm”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.