Upon the introduction of the Vue element-ui framework icon failure

Scenes:

    vue-cli built engineering projects, the introduction element frame icon found invalid, into a box

    

 

solution:

    The introduction of CDN style file link in index.html

<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">

After the successful introduction will find invalid font-awesome before, then go to the source view will see font-awesome icon prefix fa fa-xxx form, but the icon format element source framework for el-icon-xxx form.

 

 

.

Guess you like

Origin www.cnblogs.com/jianxian/p/11313900.html