Basic Use
You can place Font Awesome icons just about anywhere using a CSS style prefix and the icon’s name. Font Awesome is designed to be used with inline elements (we like the <i>
tag for brevity, but using a <span>
is more semantically correct).
Stacked Icons
To stack multiple icons, use the fa-stack
class on the parent, the fa-stack-1x
for the regularly sized icon, and fa-stack-2x
for the larger icon. fa-inverse
can be used as an alternative icon color. You can even throw larger icon classes on the parent to get further control of sizing.
fa-stack
用在父層上面,fa-stack-1x
用在一般尺寸的icon,fa-stack-2x
用在大一點的icon ,fa-inverse
用在反白的icon。
例如:
fa-circle
代表圓的圖案
fa-stack-2x
是用在底圖的圓
font awesome 5把舊的fa前綴詞改成新的fas for solid和fab for brand, far for regular了。
留言列表