简体   繁体   中英

font awesome working only on chrome but not on safari

I'm working on build webpage and not sure why font awesome seems to work on google chrome but not iPhone safari. After deploying my webpage and test it on devices, it didn't work safari. How can I solve this issue?

 <link rel="stylesheet" href="https://static.fontawesome.com/css/fontawesome-app.css"> <script src="https://pro.fontawesome.com/releases/v5.6.1/js/all.js"></script> <i class="fas fa-tasks"></i> 

UPDATE: Here is my attempt using the suggestions yet it doesn't work on safari

 i{text-rendering: optimizeLegibility;} 
 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.min.css"> <script src="https://pro.fontawesome.com/releases/v5.6.1/js/all.js"></script> <i class="fas fa-tasks"></i> 

Try to add that line into you css for your icon:

text-rendering: optimizeLegibility;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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