use vue-cli as the project and use the Ali icon font icon.
is used as fontclass.
Link has been obtained / / at.alicdn.com/t/font_xxxx_xxxx.css
in a project, if the file is downloaded locally, then import css, is used normally in main.js.
but I don"t know how to use this online link.
has tried to import this link in main.js, and
has also tried to introduce css, in index.html in the original way.
doesn"t know how to use it.
add:
write in index.html like this
< link rel= "stylesheet" href= "/ / at.alicdn.com/t/font_xxxx_xxxx.css" >
No error, icon will be displayed as a box
in mian.js import will prompt me for npm install address, icon will not show
use in tempate
< I class= "iconfont el-icon-third-profile" > < / I >