元素用户界面和超赞的字体 [英] Element UI and font-awesome

查看:48
本文介绍了元素用户界面和超赞的字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果可以在Element UI中使用超赞字体或其他大图标字体,谁能搬出飞机?我看过常见问题解答,但无法使其正常工作. https://github.com/ElemeFE/element/blob/dev/FAQ. md

Can anyone explane if it is possible to use font-awesome or another big icon font with Element UI? I've seen FAQ but cannot make it work for me. https://github.com/ElemeFE/element/blob/dev/FAQ.md

谢谢.

推荐答案

您可以只包含这些库/或NPM它们,它们就可以工作,Element UI具有一组有限的图标,因此我包含了vue-awesome(字体很棒)但是我注意到图标的位置有点过分,因此您需要一些CSS来调整顶部边距(我需要-4px)并在它们上面说出按钮文本.

You can just include those libraries / or NPM them and they work, Element UI has a limited set of icons so I have include vue-awesome (font awesome) but I notice the position of the icons if out a bit so you need some CSS to adjust top margins (I needed -4px) and line them with say button text.

这篇关于元素用户界面和超赞的字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆