FontAwesomeをhtmlではなく、cssのbefore/afterに記述するときは、以下のに記述すると使える。
style.css
li a:before {
content: "\f105";
font-family: FontAwesome;
}
font-familyでFontAwesomeを指定しないと使用できないので、注意。
Go to list of users who liked
More than 5 years have passed since last update.
FontAwesomeをhtmlではなく、cssのbefore/afterに記述するときは、以下のに記述すると使える。
li a:before {
content: "\f105";
font-family: FontAwesome;
}
font-familyでFontAwesomeを指定しないと使用できないので、注意。
Register as a new user and use Qiita more conveniently
Go to list of users who liked