-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
引入ng-zorro-antd后,全局样式冲突。 #341
Comments
duplicated #202 , you can just overwrite all style over your css file. |
@zy-dreamer @vthinkxie 请注意,zorro的样式再webpack下会放到页面的style标签下,我重写的样式再css下面。优先级导致我覆盖不到。有什么方法可以将zorro的样式提取出来嘛? |
@wjtgithub |
在生产环境下,必须把css抽离于js,但是,antd的样式始终在style标签下,导致我重写的样式无法覆盖antd的样式。何解?@vthinkxie |
@wjtgithub you can overwrite all style like @zy-dreamer . |
像下图的样式,我无论如何也重写不掉 |
@wjtgithub use important |
@vthinkxie 我不认为这是一个好的办法,我觉得zorro应该改进这部分。非常感谢你的解答,我心里已经有谱了。 |
@wjtgithub just a trade-off, it is impossible to support both style lazy load and style customization. |
@zy-dreamer 谢谢 |
不支持样式定制就无法满足产品的UI需求 @vthinkxie |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm submitting a...
Current behavior
引入ng-zorro-antd后全局样式冲突
Expected behavior
样式全部加载到style标签里面。无法提取到css里面,无法重写覆盖样式
Environment
The text was updated successfully, but these errors were encountered: