这是head
标记内的代码:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous">
在控制台中,我得到以下信息:
获取https://use.fontawesome.com/releases/v5.7.1/css/all.css网:: ERR_NAME_NOT_RESOLVED
如何解决这个问题?
答案 0 :(得分:1)
网络可能有问题。
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css"
integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr"
crossorigin="anonymous">
<i class="fas fa-user-edit"></i>