elementui样式引入方法

------------恢复内容开始------------

1.直接引入:import 'element-ui/lib/theme-chalk/index.css'

2.下载资源包:https://unpkg.com/element-ui@2.15.2/lib/theme-chalk/index.css 【2.15.2】为"element-ui": "^2.13.0"版本号。

复制当前页面内容,添加到index.css文件中

同时它需要fonts文件夹下.ttf,.woff 下载就行了:https://unpkg.com/element-ui@2.13.2/lib/theme-chalk/fonts/element-icons.ttf 

然后2的引用方式就是 import './assets/css/theme-chalk/index.css' 如果你想修改样式就可以直接修改了。

------------恢复内容结束------------

原文地址:https://www.cnblogs.com/duanhuarong/p/14849449.html