Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

font awesome - fab fa-linkedin is not working in reactjs

According to new update fa fa-linkedin-square updated to fab fa-linkedin but when I use it then it is visible on hover only.

<i className="fab fa-linkedin fa-2x"></i>
<i className="fab fa-twitter-square fa-2x"></i>
<i className="fab fa-linkedin-in fa-2x"></i>

last two lines are working as expected but the first line is not working


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Could you check this codesandbox: https://codesandbox.io/s/demo-font-awesome-pro-cdn-web-fonts-css-forked-h42rm?file=/index.html I'm able to display it without hover. One probable cause for your problem might be color similarity between icon and background.Try changing icon color to a different color, it might solve your problem.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...