Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css样式与font-awesome冲突 #45

Closed
OckhamRazor opened this issue Jul 31, 2017 · 3 comments
Closed

css样式与font-awesome冲突 #45

OckhamRazor opened this issue Jul 31, 2017 · 3 comments

Comments

@OckhamRazor
Copy link

OckhamRazor commented Jul 31, 2017

观察到css文件中使用了font-awesome,可能导致font-awsome.css无法正常显示

@CHENXCHEN
Copy link
Collaborator

可以给个demo吗?

@OckhamRazor
Copy link
Author

OckhamRazor commented Jul 31, 2017

抱歉,我尝试在jsfildde和runkit上都没能正确地引入npm资源,所以没有一个可视化的demo.不过我通过看源码,我觉得是地方引起的,具体位置在dist/css/index.css.
[class*=" fa-"]:before,[class^=fa-]:before{
font-family:fontello;
font-style:normal;
....
}

这个地方覆盖了所有的fa字体,导致部分icon是无法显示的

@CHENXCHEN
Copy link
Collaborator

的确有这样的情况,下个版本修正。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants